code: def setNameExceptions(self, filesOrModules):
          
          pathList = self.getPathList(filesOrModules)
          for path in pathList:
              patternsFunc, patternsClass = findAllExceptions(path)
              self.allowPatternsForNameChecking(patternsFunc, patternsClass)
docs: Find name exceptions in codes and allow them to be ignored
          in checking.
  
          @param filesOrModules: a list of modules (may be foo/bar.py or
          foo.bar)