[Checkins] SVN: zc.buildout/branches/gary-1-minor-cleanup/zc.recipe.egg_/src/zc/recipe/egg/egg.py remove some superfluous whitespace, capitalize a comment, and normalize option error message to look like the ones in zc.buildout.

Gary Poster gary.poster at canonical.com
Thu Sep 24 13:56:11 EDT 2009


Log message for revision 104496:
  remove some superfluous whitespace, capitalize a comment, and normalize option error message to look like the ones in zc.buildout.

Changed:
  U   zc.buildout/branches/gary-1-minor-cleanup/zc.recipe.egg_/src/zc/recipe/egg/egg.py

-=-
Modified: zc.buildout/branches/gary-1-minor-cleanup/zc.recipe.egg_/src/zc/recipe/egg/egg.py
===================================================================
--- zc.buildout/branches/gary-1-minor-cleanup/zc.recipe.egg_/src/zc/recipe/egg/egg.py	2009-09-24 17:47:06 UTC (rev 104495)
+++ zc.buildout/branches/gary-1-minor-cleanup/zc.recipe.egg_/src/zc/recipe/egg/egg.py	2009-09-24 17:56:11 UTC (rev 104496)
@@ -42,7 +42,7 @@
         allow_hosts = buildout['buildout'].get('allow-hosts', '*')
         allow_hosts = tuple([host.strip() for host in allow_hosts.split('\n')
                                if host.strip()!=''])
-        self.allow_hosts = allow_hosts 
+        self.allow_hosts = allow_hosts
 
         options['eggs-directory'] = buildout['buildout']['eggs-directory']
         options['_e'] = options['eggs-directory'] # backward compat.
@@ -81,9 +81,9 @@
 
             ws = zc.buildout.easy_install.install(
                 distributions, options['eggs-directory'],
-                links = self.links,
-                index = self.index, 
-                executable = options['executable'],
+                links=self.links,
+                index=self.index,
+                executable=options['executable'],
                 path=[options['develop-eggs-directory']],
                 newest=self.buildout['buildout'].get('newest') == 'true',
                 allow_hosts=self.allow_hosts,
@@ -115,7 +115,7 @@
 
 
         relative_paths = options.get(
-            'relative-paths', 
+            'relative-paths',
             buildout['buildout'].get('relative-paths', 'false')
             )
         if relative_paths == 'true':
@@ -150,7 +150,7 @@
                 reqs.append(parsed.groups())
 
             if get_bool(options, 'dependent-scripts'):
-                # generate scripts for all packages in the working set,
+                # Generate scripts for all packages in the working set,
                 # except setuptools.
                 reqs = list(reqs)
                 for dist in ws:
@@ -183,6 +183,6 @@
         return False
     else:
         raise zc.buildout.UserError(
-            "Invalid value for %s: %s" % (name, value))
+            "Invalid value for %s option: %s" % (name, value))
 
 Egg = Scripts



More information about the checkins mailing list