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
b469f471
Commit
b469f471
authored
Aug 11, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py2.6/3.0 import fixes
parent
6b760cb3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
Cython/Compiler/Buffer.py
Cython/Compiler/Buffer.py
+6
-2
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+4
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+4
-1
No files found.
Cython/Compiler/Buffer.py
View file @
b469f471
...
@@ -6,9 +6,13 @@ from Cython.Compiler.TreeFragment import TreeFragment
...
@@ -6,9 +6,13 @@ from Cython.Compiler.TreeFragment import TreeFragment
from
Cython.Utils
import
EncodedString
from
Cython.Utils
import
EncodedString
from
Cython.Compiler.Errors
import
CompileError
from
Cython.Compiler.Errors
import
CompileError
import
PyrexTypes
import
PyrexTypes
from
sets
import
Set
as
set
import
textwrap
try
:
set
except
NameError
:
from
sets
import
Set
as
set
import
textwrap
def
dedent
(
text
,
reindent
=
0
):
def
dedent
(
text
,
reindent
=
0
):
text
=
textwrap
.
dedent
(
text
)
text
=
textwrap
.
dedent
(
text
)
if
reindent
>
0
:
if
reindent
>
0
:
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
b469f471
...
@@ -5,7 +5,10 @@ from Cython.Compiler.ExprNodes import *
...
@@ -5,7 +5,10 @@ from Cython.Compiler.ExprNodes import *
from
Cython.Compiler.TreeFragment
import
TreeFragment
from
Cython.Compiler.TreeFragment
import
TreeFragment
from
Cython.Utils
import
EncodedString
from
Cython.Utils
import
EncodedString
from
Cython.Compiler.Errors
import
CompileError
from
Cython.Compiler.Errors
import
CompileError
from
sets
import
Set
as
set
try
:
set
except
NameError
:
from
sets
import
Set
as
set
class
NormalizeTree
(
CythonTransform
):
class
NormalizeTree
(
CythonTransform
):
"""
"""
...
...
Cython/Compiler/Symtab.py
View file @
b469f471
...
@@ -15,7 +15,10 @@ from TypeSlots import \
...
@@ -15,7 +15,10 @@ from TypeSlots import \
get_special_method_signature
,
get_property_accessor_signature
get_special_method_signature
,
get_property_accessor_signature
import
ControlFlow
import
ControlFlow
import
__builtin__
import
__builtin__
from
sets
import
Set
as
set
try
:
set
except
NameError
:
from
sets
import
Set
as
set
possible_identifier
=
re
.
compile
(
ur"(?![0-9])\
w+$
", re.U).match
possible_identifier
=
re
.
compile
(
ur"(?![0-9])\
w+$
", re.U).match
nice_identifier = re.compile('^[a-zA-Z0-0_]+$').match
nice_identifier = re.compile('^[a-zA-Z0-0_]+$').match
...
...
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