From: Thierry Parmentelat Date: Fri, 6 Jan 2017 14:30:21 +0000 (+0100) Subject: very few minor pep8 tweaks X-Git-Tag: sfa-3.1-21~7 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=3227bb286e16c149e1cda6ea82ad531025e5bdd7 very few minor pep8 tweaks --- diff --git a/setup.py b/setup.py index 3098a5c5..45f58f8e 100755 --- a/setup.py +++ b/setup.py @@ -16,8 +16,8 @@ import shutil from distutils.core import setup # check for the correct version of python -major,minor = sys.version_info [0:2] -if (major,minor) != (2,7): +major, minor = sys.version_info [0:2] +if (major, minor) != (2, 7): print ("Sorry, the SFA package is currently available only with python-2.7") exit(1) @@ -67,7 +67,8 @@ packages = [ ] initscripts = [ 'sfa' ] -if not os.path.isfile('/etc/redhat-release'): initscripts.append('functions.sfa') +if not os.path.isfile('/etc/redhat-release'): + initscripts.append('functions.sfa') data_files = [ ('/etc/sfa/', [ 'config/aggregates.xml', 'config/registries.xml', diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index 6198f83c..bcf541ad 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -214,7 +214,7 @@ class Xrn: raise SfaAPIError("Xrn.urn_to_hrn") parts = Xrn.urn_split(self.urn) - type=parts.pop(2) + type = parts.pop(2) # Remove the authority name (e.g. '.sa') if type == 'authority': name = parts.pop()