[damned-lies] Removed unneeded object parent classes



commit 51bd0769aa299c01b96f9ae312eed2f29fdcd7bb
Author: Claude Paroz <claude 2xlibre net>
Date:   Fri Jul 6 09:49:53 2018 +0200

    Removed unneeded object parent classes
    
    This was remaining from Python 2 era.

 stats/doap.py      | 2 +-
 stats/models.py    | 6 +++---
 stats/utils.py     | 2 +-
 teams/models.py    | 2 +-
 vertimus/models.py | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/stats/doap.py b/stats/doap.py
index 90e6f55d..e60abb8c 100644
--- a/stats/doap.py
+++ b/stats/doap.py
@@ -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()
diff --git a/stats/models.py b/stats/models.py
index 77c9bc38..f97ab8e3 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -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):
diff --git a/stats/utils.py b/stats/utils.py
index 5cb7d54e..76dd205f 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -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()
 
diff --git a/teams/models.py b/teams/models.py
index 8ba1294d..40bf8860 100644
--- a/teams/models.py
+++ b/teams/models.py
@@ -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.
diff --git a/vertimus/models.py b/vertimus/models.py
index 75f9f16f..0f60b957 100644
--- a/vertimus/models.py
+++ b/vertimus/models.py
@@ -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 = "--------"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]