vcs:utils: some VCSs (e.g. Git) return sets of authors.
authorW. Trevor King <wking@tremily.us>
Sat, 20 Oct 2012 01:10:23 +0000 (21:10 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Oct 2012 01:10:23 +0000 (21:10 -0400)
update_copyright/vcs/utils.py

index b497928597ad971931dca1f2368e6929efda5956..40406d64ad8af4e9d75a6276c61f497b4af3de9e 100644 (file)
@@ -162,6 +162,7 @@ def replace_aliases(authors, with_email=True, aliases=None):
     if aliases == None:
         aliases = ALIASES
     rev_aliases = reverse_aliases(aliases)
+    authors = list(authors)
     for i,author in enumerate(authors):
         if author in rev_aliases:
             authors[i] = rev_aliases[author]