summaryrefslogtreecommitdiffstats
path: root/cnucnu
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2014-02-06 12:38:42 +0100
committerTill Maas <opensource@till.name>2014-02-06 12:38:42 +0100
commit1c80514eb9cb0132b57db128600b0a87da6951db (patch)
tree4774d1856894e8c50b49976bd681ec97c41e4197 /cnucnu
parent1ce25e7fe206cda02d5c009120b5b6ae856e0ec0 (diff)
downloadcnucnu-1c80514eb9cb0132b57db128600b0a87da6951db.tar.gz
cnucnu-1c80514eb9cb0132b57db128600b0a87da6951db.tar.xz
cnucnu-1c80514eb9cb0132b57db128600b0a87da6951db.zip
PEP8 scm.py
Diffstat (limited to 'cnucnu')
-rwxr-xr-xcnucnu/scm.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cnucnu/scm.py b/cnucnu/scm.py
index d07a1c0..5fe2793 100755
--- a/cnucnu/scm.py
+++ b/cnucnu/scm.py
@@ -22,6 +22,7 @@
from helper import secure_download
from config import global_config
+
class SCM(object):
""" cainfo: filename :-/
"""
@@ -58,9 +59,11 @@ class SCM(object):
return False
-
if __name__ == '__main__':
- scm = SCM(**{"view_scm_url": "https://pkgs.fedoraproject.org/cgit/%(name)s.git/plain/sources", "cainfo": "fedora-server-ca.cert"})
+ scm = SCM(**{
+ "view_scm_url":
+ "https://pkgs.fedoraproject.org/cgit/%(name)s.git/plain/sources",
+ "cainfo": "fedora-server-ca.cert"})
from package_list import Package, Repository
@@ -74,4 +77,3 @@ if __name__ == '__main__':
print "sources:", scm.get_sources({"name": package_name})
print "source files: ", scm.get_sourcefiles({"name": package_name})
print "has_upstream_version ", scm.has_upstream_version(package)
-