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
4d98733e
Commit
4d98733e
authored
Dec 16, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provide 'builtins' builtin module in -3 mode
parent
cdd7a878
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+1
-1
No files found.
Cython/Compiler/Main.py
View file @
4d98733e
...
@@ -70,7 +70,6 @@ class Context(object):
...
@@ -70,7 +70,6 @@ class Context(object):
# language_level int currently 2 or 3 for Python 2/3
# language_level int currently 2 or 3 for Python 2/3
def
__init__
(
self
,
include_directories
,
compiler_directives
,
cpp
=
False
,
language_level
=
2
):
def
__init__
(
self
,
include_directories
,
compiler_directives
,
cpp
=
False
,
language_level
=
2
):
#self.modules = {"__builtin__" : BuiltinScope()}
import
Builtin
,
CythonScope
import
Builtin
,
CythonScope
self
.
modules
=
{
"__builtin__"
:
Builtin
.
builtin_scope
}
self
.
modules
=
{
"__builtin__"
:
Builtin
.
builtin_scope
}
self
.
modules
[
"cython"
]
=
CythonScope
.
create_cython_scope
(
self
)
self
.
modules
[
"cython"
]
=
CythonScope
.
create_cython_scope
(
self
)
...
@@ -95,6 +94,7 @@ class Context(object):
...
@@ -95,6 +94,7 @@ class Context(object):
from
Future
import
print_function
,
unicode_literals
from
Future
import
print_function
,
unicode_literals
self
.
future_directives
.
add
(
print_function
)
self
.
future_directives
.
add
(
print_function
)
self
.
future_directives
.
add
(
unicode_literals
)
self
.
future_directives
.
add
(
unicode_literals
)
self
.
modules
[
'builtins'
]
=
self
.
modules
[
'__builtin__'
]
def
create_pipeline
(
self
,
pxd
,
py
=
False
):
def
create_pipeline
(
self
,
pxd
,
py
=
False
):
from
Visitor
import
PrintTree
from
Visitor
import
PrintTree
...
...
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