convert: don't use mutable default argument value
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 14 Mar 2017 23:48:08 -0700
changeset 31408 6e3c79bc9a35
parent 31407 b8848750a3c1
child 31409 dddc4812aa7a
convert: don't use mutable default argument value Caught by pylint.
hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py	Tue Mar 14 23:46:48 2017 -0700
+++ b/hgext/convert/cvsps.py	Tue Mar 14 23:48:08 2017 -0700
@@ -622,7 +622,7 @@
     # Sort changesets by date
 
     odd = set()
-    def cscmp(l, r, odd=odd):
+    def cscmp(l, r):
         d = sum(l.date) - sum(r.date)
         if d:
             return d