mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Adapt small changes in parso's FileIO
This commit is contained in:
@@ -98,7 +98,10 @@ class ZipFileIO(KnownContentFileIO):
|
||||
self._zip_path = zip_path
|
||||
|
||||
def get_last_modified(self):
|
||||
return os.path.getmtime(self._zip_path)
|
||||
try:
|
||||
return os.path.getmtime(self._zip_path)
|
||||
except OSError: # Python 3 would probably only need FileNotFoundError
|
||||
return None
|
||||
|
||||
|
||||
def _from_loader(loader, string):
|
||||
|
||||
@@ -122,6 +122,7 @@ class TreeNameDefinition(AbstractTreeName):
|
||||
|
||||
|
||||
class ParamNameInterface(object):
|
||||
# annotation default?!
|
||||
def get_kind(self):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user