Issue #19 resolved

unicode_literals brakes enviroment on windows on Python 2.7.3

created an issue

Hi, apparently unicode_literals turns Windows envoiroment into unicode which is not supported by Popen (at least) in Python 2.7.3.

Comments (7)

  1. Alexander Kolesnikov

    Hi, I have the same problem.

    File "c:\Python27\lib\site-packages\hgapi\", line 184, in hg_log return self.hg_command(*cmds) File "c:\Python27\lib\site-packages\hgapi\", line 68, in hg_command proc = Popen(["hg", "--cwd", self.path, "--encoding", "UTF-8"] + list(args), stdout=PIPE, stderr=PIPE, env=self._env) File "c:\Python27\lib\", line 679, in init errread, errwrite) File "c:\Python27\lib\", line 896, in _execute_child startupinfo) TypeError: environment can only contain strings

    UPDATE: hgapi 1.3.0 works fine.

  2. Log in to comment