230 try: |
230 try: |
231 if FileSystemUtilities.isRemoteFileName(filename): |
231 if FileSystemUtilities.isRemoteFileName(filename): |
232 remotefsInterface = ( |
232 remotefsInterface = ( |
233 ericApp().getObject("EricServer").getServiceInterface("FileSystem") |
233 ericApp().getObject("EricServer").getServiceInterface("FileSystem") |
234 ) |
234 ) |
235 bText = remotefsInterface.readFile( |
235 text = remotefsInterface.readEncodedFile( |
236 FileSystemUtilities.plainFileName(filename) |
236 filename |
237 ) |
237 )[0] |
238 text = Utilities.decode(bText)[0] |
|
239 else: |
238 else: |
240 text = Utilities.readEncodedFile(filename)[0] |
239 text = Utilities.readEncodedFile(filename)[0] |
241 except (OSError, UnicodeError): |
240 except (OSError, UnicodeError): |
242 return SourceStat() |
241 return SourceStat() |
243 |
242 |