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
Kirill Smelkov
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):
for
path
in
iglob
(
pattern
):
yield
path
def
nonempty
(
iter
,
error_msg
=
"expected non-empty iterator"
):
any
=
False
for
file
in
iter
:
any
=
True
yield
file
if
not
any
:
def
nonempty
(
it
,
error_msg
=
"expected non-empty iterator"
):
empty
=
True
for
value
in
it
:
empty
=
False
yield
value
if
empty
:
raise
ValueError
(
error_msg
)
@
cached_function
def
file_hash
(
filename
):
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