From: W. Trevor King Date: Thu, 16 Feb 2012 12:02:17 +0000 (-0500) Subject: Add a normpath() to files returned by list_files (less suprising this way). X-Git-Tag: v0.2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47ce7307328749d2d1422724071341de101bb6c1;p=update-copyright.git Add a normpath() to files returned by list_files (less suprising this way). --- diff --git a/update_copyright/utils.py b/update_copyright/utils.py index 7cceb22..41da98f 100644 --- a/update_copyright/utils.py +++ b/update_copyright/utils.py @@ -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))