Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
ef11618f
Commit
ef11618f
authored
Apr 09, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
e0c8a312
a7eef21b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
5 deletions
+4
-5
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+3
-1
Cython/Includes/cpython/__init__.pyx
Cython/Includes/cpython/__init__.pyx
+0
-1
Cython/Includes/libc/__init__.pyx
Cython/Includes/libc/__init__.pyx
+0
-1
Cython/Includes/libcpp/__init__.pyx
Cython/Includes/libcpp/__init__.pyx
+0
-1
tests/run/dict_get.pyx
tests/run/dict_get.pyx
+1
-1
No files found.
Cython/Compiler/Main.py
View file @
ef11618f
...
...
@@ -417,7 +417,9 @@ class Context(object):
def
is_package_dir
(
self
,
dir_path
):
# Return true if the given directory is a package directory.
for
filename
in
(
"__init__.py"
,
"__init__.pyx"
):
for
filename
in
(
"__init__.py"
,
"__init__.pyx"
,
"__init__.pxd"
):
path
=
os
.
path
.
join
(
dir_path
,
filename
)
if
os
.
path
.
exists
(
path
):
return
1
...
...
Cython/Includes/cpython/__init__.pyx
deleted
100644 → 0
View file @
e0c8a312
# empty file
Cython/Includes/libc/__init__.pyx
deleted
100644 → 0
View file @
e0c8a312
# empty file
Cython/Includes/libcpp/__init__.pyx
deleted
100644 → 0
View file @
e0c8a312
# empty file
tests/run/dict_get.pyx
View file @
ef11618f
...
...
@@ -84,7 +84,7 @@ def get_default(dict d, key, default):
def
get_in_condition
(
dict
d
,
key
,
expected_result
):
"""
>>> d = dict(a=1, b=2)
>>> get
item
_in_condition(d, 'a', 1)
>>> get_in_condition(d, 'a', 1)
True
"""
return
d
.
get
(
key
)
is
expected_result
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment