Make pychecker happy
authorGuido Günther <agx@sigxcpu.org>
Thu, 24 Jul 2014 21:13:03 +0000 (23:13 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 24 Jul 2014 21:33:36 +0000 (23:33 +0200)
We don't use the class variable anywhere

gbp/pkg/__init__.py

index 05f1f2c..34f81cd 100644 (file)
@@ -131,8 +131,8 @@ class PkgPolicy(object):
             raise NotImplementedError("Class needs to provide upstreamversion_re")
         return True if cls.upstreamversion_re.match(version) else False
 
-    @classmethod
-    def guess_upstream_src_version(cls, filename, extra_regex=r''):
+    @staticmethod
+    def guess_upstream_src_version(filename, extra_regex=r''):
         """
         Guess the package name and version from the filename of an upstream
         archive.