diff options
Diffstat (limited to 'cnucnu')
-rw-r--r-- | cnucnu/bugzilla_reporter.py | 4 | ||||
-rw-r--r-- | cnucnu/checkshell.py | 4 | ||||
-rwxr-xr-x | cnucnu/config.py | 4 | ||||
-rwxr-xr-x | cnucnu/cvs.py | 2 | ||||
-rw-r--r-- | cnucnu/helper.py | 2 | ||||
-rwxr-xr-x | cnucnu/package_list.py | 8 | ||||
-rwxr-xr-x | cnucnu/wiki.py | 2 |
7 files changed, 13 insertions, 13 deletions
diff --git a/cnucnu/bugzilla_reporter.py b/cnucnu/bugzilla_reporter.py index 4e24f08..6606fcc 100644 --- a/cnucnu/bugzilla_reporter.py +++ b/cnucnu/bugzilla_reporter.py @@ -28,7 +28,7 @@ class BugzillaReporter(object): bug_status_closed = ['CLOSED'] new_bug = {} - + def __init__(self, config=global_config.bugzilla_config): self._bz = None @@ -121,7 +121,7 @@ class BugzillaReporter(object): 'short_desc': [short_desc_pattern], 'short_desc_type': ['substring'] } - + q.update(self.base_query) bugs = self.bz.query(q) if bugs: diff --git a/cnucnu/checkshell.py b/cnucnu/checkshell.py index 5007b8b..e0cf862 100644 --- a/cnucnu/checkshell.py +++ b/cnucnu/checkshell.py @@ -55,7 +55,7 @@ class CheckShell(cmd.Cmd): bugzilla_config = self.config.bugzilla_config try: self._br = BugzillaReporter(bugzilla_config) - + except Exception, e: print "Cannot query bugzilla, maybe config is faulty or missing", repr(e), dict(e), str(e) return self._br @@ -91,7 +91,7 @@ class CheckShell(cmd.Cmd): def complete_inspect(self, text, line, begidx, endidx): package_names = [p.name for p in self.package_list if p.name.startswith(text)] return package_names - + def do_regex(self, args): self.package.regex = args diff --git a/cnucnu/config.py b/cnucnu/config.py index d52939d..5982f75 100755 --- a/cnucnu/config.py +++ b/cnucnu/config.py @@ -85,7 +85,7 @@ class Config(object): # TODO? self.__getitem__ = self.config.__getitem__ - + if load_default: self.update_yaml(DEFAULT_YAML) if yaml_file: @@ -170,7 +170,7 @@ if __name__ == '__main__': print cf.yaml cf.update_yaml_file('../cnucnu.yaml') - + print "Global config" pprint(cf.config) diff --git a/cnucnu/cvs.py b/cnucnu/cvs.py index f88183a..d3ba2d0 100755 --- a/cnucnu/cvs.py +++ b/cnucnu/cvs.py @@ -24,7 +24,7 @@ from config import global_config class CVS(object): """ cainfo: filename :-/ - """ + """ def __init__(self, viewvc_url="", cainfo=""): defaults = global_config.config["cvs"] diff --git a/cnucnu/helper.py b/cnucnu/helper.py index 2e2f3dc..a5c00d6 100644 --- a/cnucnu/helper.py +++ b/cnucnu/helper.py @@ -71,7 +71,7 @@ def get_html(url, callback=None, errback=None): c.perform() c.close() - + # this causes a hangug if reactor.run() was already called once #df = getPage(url) #df.addCallback(res.write) diff --git a/cnucnu/package_list.py b/cnucnu/package_list.py index ccd7ff5..55a4c85 100755 --- a/cnucnu/package_list.py +++ b/cnucnu/package_list.py @@ -79,7 +79,7 @@ class Repository: def package_version(self, package): return self.nvr_dict[package.name][0] - + def package_release(self, package): return self.nvr_dict[package.name][1] @@ -267,7 +267,7 @@ class Package(object): if not self._latest_upstream: from cnucnu.helper import upstream_max self._latest_upstream = upstream_max(self.upstream_versions) - + # invalidate _rpm_diff cache self._rpm_diff = None @@ -278,7 +278,7 @@ class Package(object): if not self._repo_version: self._repo_version = self.repo.package_version(self) return self._repo_version - + @property def repo_release(self): if not self._repo_release: @@ -294,7 +294,7 @@ class Package(object): @property def upstream_newer(self): return self.rpm_diff == 1 - + @property def repo_newer(self): return self.rpm_diff == -1 diff --git a/cnucnu/wiki.py b/cnucnu/wiki.py index 5d85f1d..62028b9 100755 --- a/cnucnu/wiki.py +++ b/cnucnu/wiki.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python # vim: fileencoding=utf8 foldmethod=marker # {{{ License header: GPLv2+ # This file is part of cnucnu. |