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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
96d3bacb
Commit
96d3bacb
authored
Jan 11, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid using builtin names as local variables
parent
7e89fa7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+8
-6
No files found.
Cython/Build/Dependencies.py
View file @
96d3bacb
...
@@ -93,14 +93,16 @@ def extended_iglob(pattern):
...
@@ -93,14 +93,16 @@ def extended_iglob(pattern):
for
path
in
iglob
(
pattern
):
for
path
in
iglob
(
pattern
):
yield
path
yield
path
def
nonempty
(
iter
,
error_msg
=
"expected non-empty iterator"
):
any
=
False
def
nonempty
(
it
,
error_msg
=
"expected non-empty iterator"
):
for
file
in
iter
:
empty
=
True
any
=
True
for
value
in
it
:
yield
file
empty
=
False
if
not
any
:
yield
value
if
empty
:
raise
ValueError
(
error_msg
)
raise
ValueError
(
error_msg
)
@
cached_function
@
cached_function
def
file_hash
(
filename
):
def
file_hash
(
filename
):
path
=
os
.
path
.
normpath
(
filename
.
encode
(
"UTF-8"
))
path
=
os
.
path
.
normpath
(
filename
.
encode
(
"UTF-8"
))
...
...
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