454 |
454 |
455 if moduleName == "__init__": |
455 if moduleName == "__init__": |
456 # we got a package |
456 # we got a package |
457 packageName = \ |
457 packageName = \ |
458 os.path.split(os.path.dirname(self.__filename))[1] |
458 os.path.split(os.path.dirname(self.__filename))[1] |
459 if packageName.lower != packageName: |
459 if packageName.lower() != packageName: |
460 yield self.__error(node, "N808") |
460 yield self.__error(node, "N808") |
461 |
461 |
462 def __checkImportAs(self, node, parents): |
462 def __checkImportAs(self, node, parents): |
463 """ |
463 """ |
464 Private method to check that imports don't change the |
464 Private method to check that imports don't change the |