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
512c8411
Commit
512c8411
authored
Jul 25, 2015
by
Petr Viktorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2to3: Run the 'has_key' fixer
parent
cb6278ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
2to3-fixers.txt
2to3-fixers.txt
+0
-1
Tools/site_scons/site_tools/pyext.py
Tools/site_scons/site_tools/pyext.py
+2
-2
No files found.
2to3-fixers.txt
View file @
512c8411
lib2to3.fixes.fix_basestring
lib2to3.fixes.fix_basestring
lib2to3.fixes.fix_dict
lib2to3.fixes.fix_dict
lib2to3.fixes.fix_future
lib2to3.fixes.fix_future
lib2to3.fixes.fix_has_key
lib2to3.fixes.fix_import
lib2to3.fixes.fix_import
lib2to3.fixes.fix_imports
lib2to3.fixes.fix_imports
lib2to3.fixes.fix_isinstance
lib2to3.fixes.fix_isinstance
...
...
Tools/site_scons/site_tools/pyext.py
View file @
512c8411
...
@@ -164,7 +164,7 @@ def _set_configuration_nodistutils(env):
...
@@ -164,7 +164,7 @@ def _set_configuration_nodistutils(env):
env
.
AppendUnique
(
PYEXTLINKFLAGS
=
env
[
'PYEXT_ALLOW_UNDEFINED'
])
env
.
AppendUnique
(
PYEXTLINKFLAGS
=
env
[
'PYEXT_ALLOW_UNDEFINED'
])
def
ifnotset
(
env
,
name
,
value
):
def
ifnotset
(
env
,
name
,
value
):
if
n
ot
env
.
has_key
(
name
)
:
if
n
ame
not
in
env
:
env
[
name
]
=
value
env
[
name
]
=
value
def
set_configuration
(
env
,
use_distutils
):
def
set_configuration
(
env
,
use_distutils
):
...
@@ -205,7 +205,7 @@ def generate(env):
...
@@ -205,7 +205,7 @@ def generate(env):
"""Add Builders and construction variables for python extensions to an
"""Add Builders and construction variables for python extensions to an
Environment."""
Environment."""
if
not
env
.
has_key
(
'PYEXT_USE_DISTUTILS'
)
:
if
'PYEXT_USE_DISTUTILS'
not
in
env
:
env
[
'PYEXT_USE_DISTUTILS'
]
=
False
env
[
'PYEXT_USE_DISTUTILS'
]
=
False
# This sets all constructions variables used for pyext builders.
# This sets all constructions variables used for pyext builders.
...
...
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