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 {} |