1146 if time.monotonic() - self.__timenow > 0.01: |
1146 if time.monotonic() - self.__timenow > 0.01: |
1147 QApplication.processEvents() |
1147 QApplication.processEvents() |
1148 self.__timenow = time.monotonic() |
1148 self.__timenow = time.monotonic() |
1149 |
1149 |
1150 try: |
1150 try: |
1151 if FileSystemUtilities.isRemoteFileName(self.filename): |
1151 if FileSystemUtilities.isRemoteFileName(filename): |
1152 source, encoding = self.__remotefsInterface.readEncodedFile( |
1152 source, encoding = self.__remotefsInterface.readEncodedFile( |
1153 self.filename |
1153 filename |
1154 ) |
1154 ) |
1155 else: |
1155 else: |
1156 source, encoding = Utilities.readEncodedFile(filename) |
1156 source, encoding = Utilities.readEncodedFile(filename) |
1157 source = source.splitlines(True) |
1157 source = source.splitlines(True) |
1158 except (OSError, UnicodeError) as msg: |
1158 except (OSError, UnicodeError) as msg: |