On Sun, 27 Mar 2016 13:24:05 +0000, Hongyi Zhao wrote: > # replace env > os.environ.clear()
I find another method which can solve this issue, ie., changing the above code into the follows: # ref : http://unix.stackexchange.com/questions/178522/unsetting- environment-variable-with-an-empty-name if "" in os.environ.data: del os.environ.data[""] os.environ.clear() Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- https://mail.python.org/mailman/listinfo/python-list