Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Riolo committed Apr 15, 2015
1 parent 6425e7a commit ac4b5e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/martian/testing_compat3.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def __init__(cls, classname, bases, dict_):
return type.__init__(cls, classname, bases, dict_)


class FakeModuleObject(object, metaclass = FakeModuleObjectMetaclass):
class FakeModuleObject(object, metaclass=FakeModuleObjectMetaclass):
pass


class FakeModule(object, metaclass = FakeModuleMetaclass):
class FakeModule(object, metaclass=FakeModuleMetaclass):
pass
4 changes: 2 additions & 2 deletions src/martian/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
def not_unicode_or_ascii(value):

# python3 compatibility
if sys.version_info<(3,) and isinstance(value, unicode):
if sys.version_info < (3,) and isinstance(value, unicode):
return False
if not isinstance(value, str):
return True
return is_not_ascii(value)


# extra compatibility for python3.2
if sys.version_info<(3,):
if sys.version_info < (3,):
is_not_ascii = re.compile(eval(r'u"[\u0080-\uffff]"')).search
else:
is_not_ascii = re.compile(eval(r'"[\u0080-\uffff]"')).search
Expand Down

0 comments on commit ac4b5e8

Please sign in to comment.