summaryrefslogtreecommitdiffstats
path: root/cnucnu
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2014-02-06 12:40:32 +0100
committerTill Maas <opensource@till.name>2014-02-06 12:40:32 +0100
commitea46d6c4238bac8e2f1218c084077551074d9f36 (patch)
treea8dba96bdb83e2c8cef25d5ee695ea58fde7d0c7 /cnucnu
parent1c80514eb9cb0132b57db128600b0a87da6951db (diff)
downloadcnucnu-ea46d6c4238bac8e2f1218c084077551074d9f36.tar.gz
cnucnu-ea46d6c4238bac8e2f1218c084077551074d9f36.tar.xz
cnucnu-ea46d6c4238bac8e2f1218c084077551074d9f36.zip
config.py: Fix some PEP8 violations
Diffstat (limited to 'cnucnu')
-rwxr-xr-xcnucnu/config.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/cnucnu/config.py b/cnucnu/config.py
index 88aa73f..85ac9ea 100755
--- a/cnucnu/config.py
+++ b/cnucnu/config.py
@@ -25,10 +25,10 @@ __docformat__ = "restructuredtext"
from helper import pprint, filter_dict
import yaml
-DEFAULT_YAML="""
+DEFAULT_YAML = """
bugzilla:
user: upstream-release-monitoring@fedoraproject.org
- password:
+ password:
base url: https://bugzilla.redhat.com
url: "%(base url)s/xmlrpc.cgi"
bug url prefix: "%(base url)s/show_bug.cgi?id="
@@ -77,7 +77,8 @@ package list:
class Config(object):
""" Config management class for cnucnu.
"""
- def __init__(self, yaml_file=None, yaml=None, yaml_data=None, config=None, load_default=True):
+ def __init__(self, yaml_file=None, yaml=None, yaml_data=None, config=None,
+ load_default=True):
# TODO: remove yaml option
if yaml_data:
yaml = yaml_data
@@ -151,7 +152,8 @@ class Config(object):
@property
def bugzilla_class_conf(self):
- rpc_conf = filter_dict(self.bugzilla_config, ["url", "user", "password"])
+ rpc_conf = filter_dict(self.bugzilla_config, ["url", "user",
+ "password"])
return rpc_conf
@property
@@ -179,4 +181,3 @@ if __name__ == '__main__':
print "\nBugzilla class config"
pprint(cf.bugzilla_class_conf)
-