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 7cceb22..41da98f 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))