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 text = remotefsInterface.readEncodedFile( |
235 text = remotefsInterface.readEncodedFile(filename)[0] |
236 filename |
|
237 )[0] |
|
238 else: |
236 else: |
239 text = Utilities.readEncodedFile(filename)[0] |
237 text = Utilities.readEncodedFile(filename)[0] |
240 except (OSError, UnicodeError): |
238 except (OSError, UnicodeError): |
241 return SourceStat() |
239 return SourceStat() |
242 |
240 |