From e4f85d2462aba4a0715dc94aa6fb1b1f707134fd Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 14 Oct 2015 16:43:04 -0400 Subject: [PATCH] Use new-style classes consistently for Python 3 support. Also add the fixer for this to our list of fixers we check. --- bots/zephyr_mirror_backend.py | 2 +- integrations/perforce/git_p4.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index 5ba52c61..8c5bf3bb 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -44,7 +44,7 @@ import select DEFAULT_SITE = "https://api.zulip.com" -class States: +class States(object): Startup, ZulipToZephyr, ZephyrToZulip, ChildSending = list(range(4)) CURRENT_STATE = States.Startup diff --git a/integrations/perforce/git_p4.py b/integrations/perforce/git_p4.py index a9b086c2..45378a07 100644 --- a/integrations/perforce/git_p4.py +++ b/integrations/perforce/git_p4.py @@ -824,13 +824,13 @@ def wildcard_present(path): m = re.search("[*#@%]", path) return m is not None -class Command: +class Command(object): def __init__(self): self.usage = "usage: %prog [options]" self.needsGit = True self.verbose = False -class P4UserMap: +class P4UserMap(object): def __init__(self): self.userMapFromPerforceServer = False self.myP4UserId = None