diff hglib/util.py @ 182:0f81ed8e147b 2.3

util: drop mutable default from popen() It can be None because it is used only if not empty.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 19 Oct 2016 00:05:47 +0900
parents 16496e0f3c09
children 32e8d51ec16c
line wrap: on
line diff
--- a/hglib/util.py	Wed Oct 19 00:03:44 2016 +0900
+++ b/hglib/util.py	Wed Oct 19 00:05:47 2016 +0900
@@ -206,7 +206,7 @@
     startupinfo = subprocess.STARTUPINFO()
     startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
 
-def popen(args, env={}):
+def popen(args, env=None):
     environ = None
     if env:
         environ = dict(os.environ)