465 if time.monotonic() - self.__timenow > 0.01: |
465 if time.monotonic() - self.__timenow > 0.01: |
466 QApplication.processEvents() |
466 QApplication.processEvents() |
467 self.__timenow = time.monotonic() |
467 self.__timenow = time.monotonic() |
468 |
468 |
469 try: |
469 try: |
470 if FileSystemUtilities.isRemoteFileName(self.filename): |
470 source = ( |
471 source = self.__remotefsInterface.readEncodedFile( |
471 self.__remotefsInterface.readEncodedFile(self.filename)[0] |
472 self.filename |
472 if FileSystemUtilities.isRemoteFileName(self.filename) |
473 )[0] |
473 else Utilities.readEncodedFile(filename)[0] |
474 else: |
474 ) |
475 source = Utilities.readEncodedFile(filename)[0] |
|
476 source = Utilities.normalizeCode(source) |
475 source = Utilities.normalizeCode(source) |
477 except (OSError, UnicodeError) as msg: |
476 except (OSError, UnicodeError) as msg: |
478 self.noResults = False |
477 self.noResults = False |
479 self.__createResultItem( |
478 self.__createResultItem( |
480 self.filename, |
479 self.filename, |