Use new-style classes consistently for Python 3 support.

Also add the fixer for this to our list of fixers we check.
This commit is contained in:
Tim Abbott 2015-10-14 16:43:04 -04:00
parent 48f2caf12c
commit e4f85d2462
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ import select
DEFAULT_SITE = "https://api.zulip.com" DEFAULT_SITE = "https://api.zulip.com"
class States: class States(object):
Startup, ZulipToZephyr, ZephyrToZulip, ChildSending = list(range(4)) Startup, ZulipToZephyr, ZephyrToZulip, ChildSending = list(range(4))
CURRENT_STATE = States.Startup CURRENT_STATE = States.Startup

View file

@ -824,13 +824,13 @@ def wildcard_present(path):
m = re.search("[*#@%]", path) m = re.search("[*#@%]", path)
return m is not None return m is not None
class Command: class Command(object):
def __init__(self): def __init__(self):
self.usage = "usage: %prog [options]" self.usage = "usage: %prog [options]"
self.needsGit = True self.needsGit = True
self.verbose = False self.verbose = False
class P4UserMap: class P4UserMap(object):
def __init__(self): def __init__(self):
self.userMapFromPerforceServer = False self.userMapFromPerforceServer = False
self.myP4UserId = None self.myP4UserId = None