mercurial/debugcommands.py
changeset 36835 5bc7ff103081
parent 36792 15c050b5d599
child 36843 31581528f242
equal deleted inserted replaced
36834:1527f40de3b3 36835:5bc7ff103081
  1117     '''
  1117     '''
  1118     opts = pycompat.byteskwargs(opts)
  1118     opts = pycompat.byteskwargs(opts)
  1119 
  1119 
  1120     def writetemp(contents):
  1120     def writetemp(contents):
  1121         (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-")
  1121         (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-")
  1122         f = os.fdopen(fd, pycompat.sysstr("wb"))
  1122         f = os.fdopen(fd, r"wb")
  1123         f.write(contents)
  1123         f.write(contents)
  1124         f.close()
  1124         f.close()
  1125         return name
  1125         return name
  1126 
  1126 
  1127     problems = 0
  1127     problems = 0