Mercurial > python-hglib
changeset 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 | cdb5a320d2bf |
children | ae38fb772613 |
files | hglib/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)