diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2019-06-09 02:15:26 +0300 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2019-06-09 02:15:26 +0300 |
commit | bc0c8f76e323bcaf2405f10d64c803a58a9025b5 (patch) | |
tree | 7b7e510238695edb90e8396b986d7b2eeba8fa89 | |
parent | Fix some pylint errors (diff) | |
download | pomu-bc0c8f76e323bcaf2405f10d64c803a58a9025b5.tar.gz pomu-bc0c8f76e323bcaf2405f10d64c803a58a9025b5.tar.bz2 pomu-bc0c8f76e323bcaf2405f10d64c803a58a9025b5.zip |
Fix some errors found by pylint in sources
-rw-r--r-- | pomu/source/bugz.py | 4 | ||||
-rw-r--r-- | pomu/source/file.py | 2 | ||||
-rw-r--r-- | pomu/source/url.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/pomu/source/bugz.py b/pomu/source/bugz.py index 5ecace5..c85cee1 100644 --- a/pomu/source/bugz.py +++ b/pomu/source/bugz.py @@ -43,7 +43,7 @@ class BzEbuild(PackageBase): f.write(self.bug_id + '\n') def __str__(self): - return super().__str__() + ' (from {})'.format(self.path) + return super().__str__() + ' (from bug {})'.format(self.bug_id) CLIENT_BASE = 'https://bugs.gentoo.org/xmlrpc.cgi' @@ -110,4 +110,4 @@ class BugzillaSource(BaseSource): @classmethod def from_meta_dir(cls, metadir): - return BzEbuild.from_data_dir(cls, metadir) + return BzEbuild.from_data_dir(metadir) diff --git a/pomu/source/file.py b/pomu/source/file.py index a3a7e91..51f86c6 100644 --- a/pomu/source/file.py +++ b/pomu/source/file.py @@ -82,4 +82,4 @@ class LocalEbuildSource(BaseSource): @classmethod def from_meta_dir(cls, metadir): - return LocalEbuild.from_data_dir(cls, metadir) + return LocalEbuild.from_data_dir(metadir) diff --git a/pomu/source/url.py b/pomu/source/url.py index b0ad2be..6aca558 100644 --- a/pomu/source/url.py +++ b/pomu/source/url.py @@ -94,4 +94,4 @@ class URLGrabberSource(BaseSource): @classmethod def from_meta_dir(cls, metadir): - return URLEbuild.from_data_dir(cls, metadir) + return URLEbuild.from_data_dir(metadir) |