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
809417ee
Commit
809417ee
authored
Apr 25, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python fixes
parent
00a108d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+7
-7
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+3
-3
Cython/Plex/Traditional.py
Cython/Plex/Traditional.py
+2
-2
No files found.
Cython/Compiler/CmdLine.py
View file @
809417ee
...
...
@@ -47,7 +47,7 @@ Options:
# transforms for the same phase will be used in the order they are given.
def
bad_usage
():
print
>>
sys
.
stderr
,
usage
sys
.
stderr
.
write
(
usage
)
sys
.
exit
(
1
)
def
parse_command_line
(
args
):
...
...
@@ -135,14 +135,14 @@ def parse_command_line(args):
elif
arg
.
endswith
(
".o"
):
options
.
objects
.
append
(
arg
)
else
:
print
>>
sys
.
stderr
,
\
"cython: %s: Unknown filename suffix
"
%
arg
sys
.
stderr
.
write
(
"cython: %s: Unknown filename suffix
\
n
"
%
arg
)
if
options
.
objects
and
len
(
sources
)
>
1
:
print
>>
sys
.
stderr
,
\
"cython: Only one source file allowed together with .o files
"
sys
.
stderr
.
write
(
"cython: Only one source file allowed together with .o files
\
n
"
)
if
options
.
use_listing_file
and
len
(
sources
)
>
1
:
print
>>
sys
.
stderr
,
\
"cython: Only one source file allowed when using -o
"
sys
.
stderr
.
write
(
"cython: Only one source file allowed when using -o
\
n
"
)
sys
.
exit
(
1
)
if
len
(
sources
)
==
0
and
not
options
.
show_version
:
bad_usage
()
...
...
Cython/Compiler/Main.py
View file @
809417ee
...
...
@@ -4,7 +4,7 @@
import
os
,
sys
,
re
,
codecs
if
sys
.
version_info
[:
2
]
<
(
2
,
2
):
print
>>
sys
.
stderr
,
"Sorry, Cython requires Python 2.2 or later"
sys
.
stderr
.
write
(
"Sorry, Cython requires Python 2.2 or later
\
n
"
)
sys
.
exit
(
1
)
from
time
import
time
...
...
@@ -327,7 +327,7 @@ def main(command_line = 0):
options = default_options
sources = args
if options.show_version:
print >>sys.stderr, "Cython version %s" % Version.version
sys.stderr.write("Cython version %s
\
n
" % Version.version)
context = Context(options.include_path)
for source in sources:
try:
...
...
@@ -335,7 +335,7 @@ def main(command_line = 0):
if result.num_errors > 0:
any_failures = 1
except PyrexError, e:
print >>sys.stderr, e
sys.stderr.write(str(e) + '
\
n
')
any_failures = 1
if any_failures:
sys.exit(1)
...
...
Cython/Plex/Traditional.py
View file @
809417ee
...
...
@@ -6,7 +6,7 @@
#
#=======================================================================
from
Regexps
import
*
from
Regexps
import
Alt
,
Seq
,
Rep
,
Rep1
,
Opt
,
Any
,
AnyBut
,
Bol
,
Eol
,
Char
from
Errors
import
PlexError
class
RegexpSyntaxError
(
PlexError
):
...
...
@@ -104,7 +104,7 @@ class REParser:
char_list
.
append
(
chr
(
a
))
else
:
char_list
.
append
(
c1
)
chars
=
string
.
join
(
char_list
,
""
)
chars
=
''
.
join
(
char_list
)
if
invert
:
return
AnyBut
(
chars
)
else
:
...
...
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