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
Xavier Thompson
cython
Commits
db4241cf
Commit
db4241cf
authored
Apr 30, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Py2.4- compatibility fallback.
parent
0e8bc15d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
runtests.py
runtests.py
+1
-20
No files found.
runtests.py
View file @
db4241cf
...
...
@@ -21,6 +21,7 @@ import warnings
import
zlib
import
glob
from
contextlib
import
contextmanager
from
collections
import
defaultdict
try
:
import
platform
...
...
@@ -46,26 +47,6 @@ try:
except
ImportError
:
# No threads, no problems
threading
=
None
try
:
from
collections
import
defaultdict
except
ImportError
:
class
defaultdict
(
object
):
def
__init__
(
self
,
default_factory
=
lambda
:
None
):
self
.
_dict
=
{}
self
.
default_factory
=
default_factory
def
__getitem__
(
self
,
key
):
if
key
not
in
self
.
_dict
:
self
.
_dict
[
key
]
=
self
.
default_factory
()
return
self
.
_dict
[
key
]
def
__setitem__
(
self
,
key
,
value
):
self
.
_dict
[
key
]
=
value
def
__contains__
(
self
,
key
):
return
key
in
self
.
_dict
def
__repr__
(
self
):
return
repr
(
self
.
_dict
)
def
__nonzero__
(
self
):
return
bool
(
self
.
_dict
)
try
:
from
unittest
import
SkipTest
except
ImportError
:
...
...
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