1. Yuya Nishihara
  2. thg-work

Commits

Yuya Nishihara  committed 3aa42c0 Obsolete Draft

filectxactions: eliminate round-trip conversion of unicode in saveFile

  • Participants
  • Parent commits ebae68b
  • Successor commits 1b72cbe
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/filectxactions.py

View file
  • Ignore whitespace
     def saveFile(self):
         cmdlines = []
         for fd in self._selfds:
-            wfile = hglib.fromunicode(fd.absoluteFilePath())
+            wfile = fd.absoluteFilePath()
             wfile, ext = os.path.splitext(os.path.basename(wfile))
             extfilter = [_("All files (*)")]
             if wfile:
                 filename = "%s@%d" % (ext, fd.rev())
 
             result = QFileDialog.getSaveFileName(
-                self.parent(), _("Save file to"), hglib.tounicode(filename),
+                self.parent(), _("Save file to"), filename,
                 ";;".join(extfilter))
             if not result:
                 continue