projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86e1ba6
)
Make pychecker happy
author
Guido Günther
<agx@sigxcpu.org>
Thu, 24 Jul 2014 21:13:03 +0000
(23:13 +0200)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/gbp/pkg/__init__.py
b/gbp/pkg/__init__.py
index
05f1f2c
..
34f81cd
100644
(file)
--- a/
gbp/pkg/__init__.py
+++ b/
gbp/pkg/__init__.py
@@
-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
- @
class
method
- def guess_upstream_src_version(
cls,
filename, extra_regex=r''):
+ @
static
method
+ def guess_upstream_src_version(filename, extra_regex=r''):
"""
Guess the package name and version from the filename of an upstream
archive.