Add a normpath() to files returned by list_files (less suprising this way).
authorW. Trevor King <wking@drexel.edu>
Thu, 16 Feb 2012 12:02:17 +0000 (07:02 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 16 Feb 2012 12:02:17 +0000 (07:02 -0500)
update_copyright/utils.py

index 7cceb222f39eba297c1ee288207a744345548fba..41da98f3409809814b131d6f07072dfe68219345 100644 (file)
@@ -221,4 +221,4 @@ def set_contents(filename, contents, original_contents=None, dry_run=False):
 def list_files(root='.'):
     for dirpath,dirnames,filenames in _os.walk(root):
         for filename in filenames:
-            yield _os_path.join(root, dirpath, filename)
+            yield _os_path.normpath(_os_path.join(root, dirpath, filename))