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
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
from
Cython.Utils
import
EncodedString
from
Cython.Compiler.Errors
import
CompileError
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
):
text
=
textwrap
.
dedent
(
text
)
if
reindent
>
0
:
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
b469f471
...
...
@@ -5,7 +5,10 @@ from Cython.Compiler.ExprNodes import *
from
Cython.Compiler.TreeFragment
import
TreeFragment
from
Cython.Utils
import
EncodedString
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
):
"""
...
...
Cython/Compiler/Symtab.py
View file @
b469f471
...
...
@@ -15,7 +15,10 @@ from TypeSlots import \
get_special_method_signature
,
get_property_accessor_signature
import
ControlFlow
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
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