summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2010-12-25 12:57:54 +0100
committerTill Maas <opensource@till.name>2010-12-25 12:57:54 +0100
commitacdeb114a6e842068aec61af082f08a0f628974a (patch)
tree274c3c1a3489ef9a25d7b9e0696655e9b7483cfc
parentc9330daf0a29b43f281caeb9258d70891c207b14 (diff)
downloadcnucnu-acdeb114a6e842068aec61af082f08a0f628974a.tar.gz
cnucnu-acdeb114a6e842068aec61af082f08a0f628974a.tar.xz
cnucnu-acdeb114a6e842068aec61af082f08a0f628974a.zip
remove extra whitespace at the end of lines
-rwxr-xr-xcnucnu.py4
-rw-r--r--cnucnu/bugzilla_reporter.py4
-rw-r--r--cnucnu/checkshell.py4
-rwxr-xr-xcnucnu/config.py4
-rwxr-xr-xcnucnu/cvs.py2
-rw-r--r--cnucnu/helper.py2
-rwxr-xr-xcnucnu/package_list.py8
-rwxr-xr-xcnucnu/wiki.py2
8 files changed, 15 insertions, 15 deletions
diff --git a/cnucnu.py b/cnucnu.py
index 7e81693..05d9cd8 100755
--- a/cnucnu.py
+++ b/cnucnu.py
@@ -33,7 +33,7 @@ pprint = pp.pprint
if __name__ == '__main__':
from optparse import OptionParser
parser = OptionParser()
-
+
parser.add_option("", "--shell", dest="action", help="Interactive shell", action="store_const", const="shell")
parser.add_option("", "--config", dest="config_filename", help="config_filename, e.g. for bugzilla credentials")
parser.add_option("", "--create-bugs", dest="action", help="file bugs for outdated packages", action="store_const", const="create-bugs")
@@ -60,7 +60,7 @@ if __name__ == '__main__':
if yaml_file:
global_config.update_yaml_file(yaml_file)
-
+
if options.action == "dump-config":
sys.stdout.write(global_config.yaml)
sys.exit(0)
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.