Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

commit: leave filename and contents as QString and unicode

Changeset 7b2e8178e935

Parent 7c67b9e45231

by Steve Borho

Changes to one file · Browse files at 7b2e8178e935 Showing diff from parent 7c67b9e45231 Diff from another changeset...

 
184
185
186
187
 
188
189
190
191
192
193
 
200
201
202
 
203
204
205
 
184
185
186
 
187
188
 
 
189
190
191
 
198
199
200
201
202
203
204
@@ -184,10 +184,8 @@
  self.msgcombo = msgcombo     @pyqtSlot(QString, QString) - def fileDisplayed(self, wfilestr, contents): + def fileDisplayed(self, wfile, contents):   'Status widget is displaying a new file' - wfile = hglib.fromunicode(wfilestr) - contents = hglib.fromunicode(contents)   if not (wfile and contents):   return   self._apis = QsciAPIs(self.msgte.lexer()) @@ -200,6 +198,7 @@
  from pygments.token import Token   from pygments.util import ClassNotFound   try: + contents = unicode(contents)   lexer = guess_lexer_for_filename(wfile, contents)   for tokentype, value in lexer.get_tokens(contents):   if tokentype is Token.Name and len(value) > 4: