changeset 31417:6e3c79bc9a35

convert: don't use mutable default argument value Caught by pylint.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 14 Mar 2017 23:48:08 -0700
parents b8848750a3c1
children dddc4812aa7a
files hgext/convert/cvsps.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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