try/except import are now handled by flake8 2.0+ / pyflakes 0.6+

This commit is contained in:
Laurent Bachelier 2013-03-18 21:15:44 +01:00 committed by Florent
commit be3e19a203
14 changed files with 17 additions and 17 deletions

View file

@ -22,15 +22,15 @@ try:
from collections import OrderedDict
except ImportError:
try:
from simplejson import OrderedDict # NOQA
from simplejson import OrderedDict
except ImportError:
try:
from ordereddict import OrderedDict # NOQA
from ordereddict import OrderedDict
except ImportError:
## {{{ http://code.activestate.com/recipes/576693/ (r6)
from UserDict import DictMixin
class OrderedDict(dict, DictMixin): # NOQA
class OrderedDict(dict, DictMixin):
def __init__(self, *args, **kwds):
if len(args) > 1:
raise TypeError('expected at most 1 arguments, got %d' % len(args))