ExtensionProtobuf/protoclbr.py

changeset 27
5e9a61e7d7d0
parent 22
ed2d8f5eaa66
child 40
c187d961ee3a
equal deleted inserted replaced
26:35f7cbb40a1f 27:5e9a61e7d7d0
213 pathname = os.path.join(p, module) 213 pathname = os.path.join(p, module)
214 if os.path.exists(pathname): 214 if os.path.exists(pathname):
215 filename = pathname 215 filename = pathname
216 try: 216 try:
217 src = Utilities.readEncodedFile(filename)[0] 217 src = Utilities.readEncodedFile(filename)[0]
218 except (UnicodeError, OSError): 218 except (OSError, UnicodeError):
219 # can't do anything with this module 219 # can't do anything with this module
220 return {} 220 return {}
221 221
222 return scan(src, filename, module) 222 return scan(src, filename, module)
223 return {} 223 return {}

eric ide

mercurial