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
cb6278ab
Commit
cb6278ab
authored
Jul 25, 2015
by
Petr Viktorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2to3: Apply 'funcattrs' fixer (conditionally)
parent
20879e4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
2to3-fixers.txt
2to3-fixers.txt
+0
-1
Cython/Build/Inline.py
Cython/Build/Inline.py
+6
-1
No files found.
2to3-fixers.txt
View file @
cb6278ab
lib2to3.fixes.fix_basestring
lib2to3.fixes.fix_dict
lib2to3.fixes.fix_funcattrs
lib2to3.fixes.fix_future
lib2to3.fixes.fix_has_key
lib2to3.fixes.fix_import
...
...
Cython/Build/Inline.py
View file @
cb6278ab
...
...
@@ -22,6 +22,8 @@ from ..Compiler import Pipeline, Nodes
from
..Utils
import
get_cython_cache_dir
import
cython
as
cython_module
IS_PY3
=
sys
.
version_info
>=
(
3
,
0
)
# A utility function to convert user-supplied ASCII strings to unicode.
if
sys
.
version_info
[
0
]
<
3
:
def
to_unicode
(
s
):
...
...
@@ -309,4 +311,7 @@ class RuntimeCompiledFunction(object):
def
__call__
(
self
,
*
args
,
**
kwds
):
all
=
getcallargs
(
self
.
_f
,
*
args
,
**
kwds
)
return
cython_inline
(
self
.
_body
,
locals
=
self
.
_f
.
func_globals
,
globals
=
self
.
_f
.
func_globals
,
**
all
)
if
IS_PY3
:
return
cython_inline
(
self
.
_body
,
locals
=
self
.
_f
.
__globals__
,
globals
=
self
.
_f
.
__globals__
,
**
all
)
else
:
return
cython_inline
(
self
.
_body
,
locals
=
self
.
_f
.
func_globals
,
globals
=
self
.
_f
.
func_globals
,
**
all
)
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