Skip to content

Commit 0ae75e7

Browse files
committed
Supporting Python 2.6
1 parent 3e28019 commit 0ae75e7

File tree

7 files changed

+8
-140
lines changed

7 files changed

+8
-140
lines changed

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ Python Toolbox includes third-party Python packages as subpackages that are used
2525
* `linecache2` by "Testing-cabal" and others, PSF license.
2626
* `traceback2` by "Testing-cabal" and others, PSF license.
2727
* `six` by Benjamin Peterson and others, MIT license.
28-
* `ordereddict` by Raymond Hettinger and others, MIT license.
29-
* `functools` by Python-dev and others, PSF license.
28+
* `functools` and `collections` by Python-dev and others, PSF license.
3029

README.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ Python Toolbox includes third-party Python packages as subpackages that are used
8484
* `linecache2` by "Testing-cabal" and others, PSF license.
8585
* `traceback2` by "Testing-cabal" and others, PSF license.
8686
* `six` by Benjamin Peterson and others, MIT license.
87-
* `ordereddict` by Raymond Hettinger and others, MIT license.
88-
* `functools` by Python-dev and others, PSF license.
87+
* `functools` and `collections` by Python-dev and others, PSF license.
8988

9089

9190
------------------------------------------------------------------

source_py2/python_toolbox/MIT_license.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ Python Toolbox includes third-party Python packages as subpackages that are used
2525
* `linecache2` by "Testing-cabal" and others, PSF license.
2626
* `traceback2` by "Testing-cabal" and others, PSF license.
2727
* `six` by Benjamin Peterson and others, MIT license.
28-
* `ordereddict` by Raymond Hettinger and others, MIT license.
29-
* `functools` by Python-dev and others, PSF license.
28+
* `functools` and `collections` by Python-dev and others, PSF license.

source_py2/python_toolbox/nifty_collections/abstract.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import collections
66
import Queue as queue
77
import multiprocessing.queues
8-
import python_toolbox.third_party.ordereddict
8+
import python_toolbox.third_party.collections
99

1010

1111
###############################################################################
@@ -29,7 +29,7 @@ class Ordered():
2929
except AttributeError:
3030
# Python 2.6
3131
pass
32-
Ordered.register(python_toolbox.third_party.ordereddict.OrderedDict)
32+
Ordered.register(python_toolbox.third_party.collections.OrderedDict)
3333
Ordered.register(collections.deque)
3434
Ordered.register(queue.Queue)
3535
Ordered.register(multiprocessing.queues.Queue)
@@ -53,7 +53,7 @@ def __subclasshook__(cls, type_):
5353
OrderedDict = collections.OrderedDict
5454
except AttributeError:
5555
# Python 2.6
56-
OrderedDict = python_toolbox.third_party.ordereddict.OrderedDict
56+
OrderedDict = python_toolbox.third_party.collections.OrderedDict
5757
if cls is DefinitelyUnordered and issubclass(type_, OrderedDict):
5858
return False
5959
else:

source_py2/python_toolbox/nifty_collections/ordered_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
try:
88
from collections import OrderedDict as StdlibOrderedDict
99
except ImportError:
10-
from python_toolbox.third_party.ordereddict import OrderedDict \
10+
from python_toolbox.third_party.collections import OrderedDict \
1111
as StdlibOrderedDict
1212

1313

source_py2/python_toolbox/third_party/ordereddict.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

source_py3/python_toolbox/MIT_license.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,4 @@ Python Toolbox includes third-party Python packages as subpackages that are used
2525
* `linecache2` by "Testing-cabal" and others, PSF license.
2626
* `traceback2` by "Testing-cabal" and others, PSF license.
2727
* `six` by Benjamin Peterson and others, MIT license.
28-
* `ordereddict` by Raymond Hettinger and others, MIT license.
29-
* `functools` by Python-dev and others, PSF license.
30-
28+
* `functools` and `collections` by Python-dev and others, PSF license.

0 commit comments

Comments
 (0)