[Checkins] SVN: Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py pyflakes & pep8

Jean-Francois Roche jfroche at jfroche.be
Mon May 23 08:59:05 EDT 2011


Log message for revision 121772:
  pyflakes & pep8

Changed:
  U   Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py

-=-
Modified: Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py
===================================================================
--- Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py	2011-05-23 12:13:24 UTC (rev 121771)
+++ Products.GenericSetup/branches/upgrade-upgrade-api/Products/GenericSetup/upgrade.py	2011-05-23 12:59:04 UTC (rev 121772)
@@ -176,11 +176,13 @@
                                               purge_old=self.purge,
                                               ignore_dependencies=ign_deps)
 
+
 def _registerUpgradeStep(step):
     profile_id = step.profile
     profile_steps = _upgrade_registry.getUpgradeStepsForProfile(profile_id)
     profile_steps[step.id] = step
 
+
 def _registerNestedUpgradeStep(step, outer_id):
     profile_id = step.profile
     profile_steps = _upgrade_registry.getUpgradeStepsForProfile(profile_id)
@@ -188,6 +190,7 @@
     nested_steps.append((step.id, step))
     profile_steps[outer_id] = nested_steps
 
+
 def _extractStepInfo(tool, id, step, source):
     """Returns the info data structure for a given step.
     """
@@ -212,9 +215,11 @@
         }
     return info
 
+
 def listProfilesWithUpgrades():
     return _upgrade_registry.keys()
 
+
 def listUpgradeSteps(tool, profile_id, source):
     """Lists upgrade steps available from a given version, for a given
     profile id.
@@ -228,7 +233,8 @@
                 continue
             normsrc = normalize_version(step.source)
             res.append(((normsrc or '', step.sortkey, info['proposed']), info))
-        else: # nested steps
+        else:
+            # nested steps
             nested = []
             outer_proposed = False
             for inner_id, inner_step in step:



More information about the checkins mailing list