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
00a108d2
Commit
00a108d2
authored
Apr 25, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial Python code fixes in Plex
parent
62daa125
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Cython/Plex/Machines.py
Cython/Plex/Machines.py
+2
-1
Cython/Plex/Regexps.py
Cython/Plex/Regexps.py
+1
-1
No files found.
Cython/Plex/Machines.py
View file @
00a108d2
...
...
@@ -258,7 +258,8 @@ class FastMachine:
def
ranges_to_string
(
self
,
range_list
):
return
string
.
join
(
map
(
self
.
range_to_string
,
range_list
),
","
)
def
range_to_string
(
self
,
(
c1
,
c2
)):
def
range_to_string
(
self
,
range_tuple
):
(
c1
,
c2
)
=
range_tuple
if
c1
==
c2
:
return
repr
(
c1
)
else
:
...
...
Cython/Plex/Regexps.py
View file @
00a108d2
...
...
@@ -122,7 +122,7 @@ class RE:
beginning of a line. If nocase is true, upper and lower case
letters should be treated as equivalent.
"""
raise
exceptions
.
UnimplementedMethod
(
"%s.build_machine not implemented"
%
raise
NotImplementedError
(
"%s.build_machine not implemented"
%
self
.
__class__
.
__name__
)
def
build_opt
(
self
,
m
,
initial_state
,
c
):
...
...
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