comparison 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
comparison
equal deleted inserted replaced
181:cdb5a320d2bf 182:0f81ed8e147b
204 startupinfo = None 204 startupinfo = None
205 if os.name == 'nt': 205 if os.name == 'nt':
206 startupinfo = subprocess.STARTUPINFO() 206 startupinfo = subprocess.STARTUPINFO()
207 startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW 207 startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
208 208
209 def popen(args, env={}): 209 def popen(args, env=None):
210 environ = None 210 environ = None
211 if env: 211 if env:
212 environ = dict(os.environ) 212 environ = dict(os.environ)
213 environ.update(env) 213 environ.update(env)
214 214