Commit 36a8c26a authored by Matt Selsky's avatar Matt Selsky
Browse files

Fix OrderedDict test

Existing code would have raised:
AttributeError: 'module' object has no attribute 'OrderedDict'

Instead import the class directly into the current namespace to force an
ImportError exception
parent 69e3b672
......@@ -625,8 +625,7 @@ class IfstatsSummary:
return s
try:
import collections
OrderedDict = collections.OrderedDict
from collections import OrderedDict
except ImportError:
class OrderedDict(dict):
"A stupid simple implementation in order to be back-portable to 2.6"
......
Supports Markdown
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