Commit 51bd0769 authored by Claude Paroz's avatar Claude Paroz

Removed unneeded object parent classes

This was remaining from Python 2 era.
parent 36a20a34
......@@ -7,7 +7,7 @@ from django.utils.encoding import force_text
from people.models import Person
class DoapParser(object):
class DoapParser:
def __init__(self, doap_path):
self.tree = parse(str(doap_path))
self.project_root = self.tree.getroot()
......
......@@ -147,7 +147,7 @@ class Module(models.Model):
return False
class ModuleLock(object):
class ModuleLock:
""" Weird things happen when multiple updates run in parallel for the same module
We use filesystem directories creation/deletion to act as global lock mecanism
"""
......@@ -1827,7 +1827,7 @@ class Statistics(models.Model):
return stats
class FakeLangStatistics(object):
class FakeLangStatistics:
""" Statistics class for a non existing lang stats """
is_fake = True
def __init__(self, pot_stat, lang):
......@@ -1854,7 +1854,7 @@ class FakeLangStatistics(object):
args=(self.branch.module.name, self.domain.name, self.branch.name, "%s.po" % locale)
)
class FakeSummaryStatistics(object):
class FakeSummaryStatistics:
""" Statistics class that sums up an entire module stats """
is_fake = True
def __init__(self, module, branch, dtype):
......
......@@ -731,7 +731,7 @@ def url_join(base, *args):
url += arg
return url
class Profiler(object):
class Profiler:
def __init__(self):
self.start = time.clock()
......
......@@ -186,7 +186,7 @@ class Team(models.Model):
)
class FakeTeam(object):
class FakeTeam:
"""
This is a class replacing a Team object when a language
has no team attached.
......
......@@ -761,7 +761,7 @@ class ActionUNDO(Action):
self.state_db.change_state(StateNone)
class ActionSeparator(object):
class ActionSeparator:
""" Fake action to add a separator in action menu """
name = None
description = "--------"
......
Markdown is supported
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