From 47ce7307328749d2d1422724071341de101bb6c1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 16 Feb 2012 07:02:17 -0500 Subject: [PATCH] Add a normpath() to files returned by list_files (less suprising this way). --- update_copyright/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.26.2