Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
gevent
Commits
f7b3c43b
Commit
f7b3c43b
authored
Jan 10, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: pep8
parent
099091c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
util/cythonpp.py
util/cythonpp.py
+3
-2
util/set_version.py
util/set_version.py
+0
-1
No files found.
util/cythonpp.py
View file @
f7b3c43b
...
...
@@ -29,6 +29,7 @@ define_re = re.compile(r'^#define\s+([a-zA-Z_]\w*)(\((?:[^,)]+,)*[^,)]+\))?\s+(.
# Conditional directive:
condition_re
=
re
.
compile
(
r'^#(ifdef\
s+.+|i
f\
s+.+|else
\s*|endif\
s*)$
')
def match_condition(line):
line = line.strip()
if line.endswith('
:
'):
...
...
@@ -224,7 +225,7 @@ def expand_to_match(items):
for
configuration
,
lines
in
items
:
cfg2newlines
[
configuration
]
=
[]
maxguard
=
2
**
30
maxguard
=
2
**
30
while
True
:
minimalsourceline
=
maxguard
for
configuration
,
lines
in
items
:
...
...
@@ -714,7 +715,7 @@ def dbg(*args):
return
log
(
*
args
)
# itertools is
only available in python 2.6
# itertools is
not available on python 2.5
# itertools.combinations has a problem on 2.6.1
def
combinations
(
iterable
,
r
):
...
...
util/set_version.py
View file @
f7b3c43b
...
...
@@ -88,7 +88,6 @@ def modify_version(filename, new_version):
if count != 1:
raise AssertionError('
version_info
found
more
than
once
in
%
s
' % filename)
def repl_version(m):
result = m.group(0).replace(m.group(1), new_version or m.group(1))
result += "
\
n
__changeset__ = '
%
s
'" % get_changeset()
...
...
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