216 pathname = os.path.join(p, module) |
216 pathname = os.path.join(p, module) |
217 if os.path.exists(pathname): |
217 if os.path.exists(pathname): |
218 filename = pathname |
218 filename = pathname |
219 try: |
219 try: |
220 src = Utilities.readEncodedFile(filename)[0] |
220 src = Utilities.readEncodedFile(filename)[0] |
221 except (UnicodeError, OSError): |
221 except (OSError, UnicodeError): |
222 # can't do anything with this module |
222 # can't do anything with this module |
223 return {} |
223 return {} |
224 |
224 |
225 return scan(src, filename, module) |
225 return scan(src, filename, module) |
226 return {} |
226 return {} |