Commit 8f636ac0 authored by Tres Seaver's avatar Tres Seaver

Simplify.

parent fdbe18c3
...@@ -37,9 +37,8 @@ class OOBucketPy(Bucket): ...@@ -37,9 +37,8 @@ class OOBucketPy(Bucket):
try: try:
from _OOBTree import OOBucket from _OOBTree import OOBucket
except ImportError: except ImportError:
OOBucket = Bucket = OOBucketPy OOBucket = OOBucketPy
else: Bucket = OOBucket
Bucket = OOBucket
class OOSetPy(Set): class OOSetPy(Set):
...@@ -48,9 +47,8 @@ class OOSetPy(Set): ...@@ -48,9 +47,8 @@ class OOSetPy(Set):
try: try:
from _OOBTree import OOSet from _OOBTree import OOSet
except ImportError: except ImportError:
OOSet = Set = OOSetPy OOSet = OOSetPy
else: Set = OOSet
Set = OOSet
class OOBTreePy(BTree): class OOBTreePy(BTree):
...@@ -60,9 +58,8 @@ class OOBTreePy(BTree): ...@@ -60,9 +58,8 @@ class OOBTreePy(BTree):
try: try:
from _OOBTree import OOBTree from _OOBTree import OOBTree
except ImportError: except ImportError:
OOBTree = BTree = OOBTreePy OOBTree = OOBTreePy
else: BTree = OOBTree
BTree = OOBTree
class OOTreeSetPy(TreeSet): class OOTreeSetPy(TreeSet):
...@@ -71,9 +68,8 @@ class OOTreeSetPy(TreeSet): ...@@ -71,9 +68,8 @@ class OOTreeSetPy(TreeSet):
try: try:
from _OOBTree import OOTreeSet from _OOBTree import OOTreeSet
except ImportError: except ImportError:
OOTreeSet = TreeSet = OOTreeSetPy OOTreeSet = OOTreeSetPy
else: TreeSet = OOTreeSet
TreeSet = OOTreeSet
# Can't declare forward refs, so fix up afterwards: # Can't declare forward refs, so fix up afterwards:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment