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
4920f46d
Commit
4920f46d
authored
Apr 22, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style fixes
parent
b87450e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Cython/Compiler/ControlFlow.py
Cython/Compiler/ControlFlow.py
+4
-6
No files found.
Cython/Compiler/ControlFlow.py
View file @
4920f46d
...
@@ -61,13 +61,13 @@ class LinearControlFlow(ControlFlow):
...
@@ -61,13 +61,13 @@ class LinearControlFlow(ControlFlow):
self
.
events
=
{}
self
.
events
=
{}
def
set_state
(
self
,
pos
,
item
,
state
):
def
set_state
(
self
,
pos
,
item
,
state
):
if
self
.
tip
.
has_key
(
item
)
:
if
item
in
self
.
tip
:
del
self
.
tip
[
item
]
del
self
.
tip
[
item
]
if
pos
<
self
.
start_pos
:
if
pos
<
self
.
start_pos
:
if
self
.
incoming
is
not
None
:
if
self
.
incoming
is
not
None
:
self
.
incoming
.
set_state
(
pos
,
item
,
state
)
self
.
incoming
.
set_state
(
pos
,
item
,
state
)
else
:
else
:
if
self
.
events
.
has_key
(
item
)
:
if
item
in
self
.
events
:
event_list
=
self
.
events
[
item
]
event_list
=
self
.
events
[
item
]
else
:
else
:
event_list
=
[]
event_list
=
[]
...
@@ -77,7 +77,7 @@ class LinearControlFlow(ControlFlow):
...
@@ -77,7 +77,7 @@ class LinearControlFlow(ControlFlow):
def
_get_pos_state
(
self
,
item
,
pos
):
def
_get_pos_state
(
self
,
item
,
pos
):
if
pos
>
self
.
start_pos
:
if
pos
>
self
.
start_pos
:
if
self
.
events
.
has_key
(
item
)
:
if
item
in
self
.
events
:
event_list
=
self
.
events
[
item
]
event_list
=
self
.
events
[
item
]
for
event
in
event_list
[::
-
1
]:
for
event
in
event_list
[::
-
1
]:
if
event
[
0
]
<
pos
:
if
event
[
0
]
<
pos
:
...
@@ -116,7 +116,7 @@ class BranchingControlFlow(ControlFlow):
...
@@ -116,7 +116,7 @@ class BranchingControlFlow(ControlFlow):
def
set_state
(
self
,
pos
,
item
,
state
):
def
set_state
(
self
,
pos
,
item
,
state
):
if
self
.
tip
.
has_key
(
item
)
:
if
item
in
self
.
tip
:
del
self
.
tip
[
item
]
del
self
.
tip
[
item
]
if
pos
<
self
.
start_pos
:
if
pos
<
self
.
start_pos
:
...
@@ -157,5 +157,3 @@ class BranchingControlFlow(ControlFlow):
...
@@ -157,5 +157,3 @@ class BranchingControlFlow(ControlFlow):
if
self
.
incoming
is
not
limit
and
self
.
incoming
is
not
None
:
if
self
.
incoming
is
not
limit
and
self
.
incoming
is
not
None
:
s
=
"%s
\
n
%s"
%
(
self
.
incoming
.
to_string
(
indent
,
limit
=
limit
),
s
)
s
=
"%s
\
n
%s"
%
(
self
.
incoming
.
to_string
(
indent
,
limit
=
limit
),
s
)
return
s
return
s
\ No newline at end of file
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