[Python-checkins] distutils2: pep8 fixes for distutils2.resources

tarek.ziade python-checkins at python.org
Sun Mar 13 19:45:15 CET 2011


http://hg.python.org/distutils2/rev/a3eac8447a36
changeset:   1104:a3eac8447a36
parent:      1097:a8c8ef7c3b92
user:        Kelsey Hightower <kelsey.hightower at gmail.com>
date:        Sun Feb 27 16:08:11 2011 -0500
summary:
  pep8 fixes for distutils2.resources

files:
  distutils2/resources.py

diff --git a/distutils2/resources.py b/distutils2/resources.py
--- a/distutils2/resources.py
+++ b/distutils2/resources.py
@@ -1,12 +1,15 @@
 import os
+
 from distutils2.util import iglob
 
+
 def _rel_path(base, path):
     assert path.startswith(base)
     return path[len(base):].lstrip('/')
 
+
 def resources_dests(resources_root, rules):
-    """find destination of ressources files"""
+    """find destination of resources files"""
     destinations = {}
     for (base, suffix, dest) in rules:
         prefix = os.path.join(resources_root, base)
@@ -14,7 +17,7 @@
             abs_glob = os.path.join(abs_base, suffix)
             for abs_path in iglob(abs_glob):
                 resource_file = _rel_path(resources_root, abs_path)
-                if dest is None: #remove the entry if it was here
+                if dest is None:  # remove the entry if it was here
                     destinations.pop(resource_file, None)
                 else:
                     rel_path = _rel_path(abs_base, abs_path)

-- 
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list