Skip to content

Commit

Permalink
amending last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
git-afsantos committed Aug 12, 2021
1 parent 8d52f2c commit 744930e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions haros/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,10 @@ def _populate_package(self, pkg, ignored_globs=None):
for filename in files:
self.log.debug("Found file %s at %s", filename, path)
source = SourceFile(filename, path, pkg)
self.log.debug("File language: %s", source.language)
sfn = os.path.join(pkg.name, source.full_name)
if source.language == "python":
if source.name.endswith(self._BYTE_CODE):
if source.language == "unknown":
if filename.endswith(self._BYTE_CODE):
self.log.debug("Python bytecode file %s was ignored",
sfn)
continue # skip this file
Expand Down

0 comments on commit 744930e

Please sign in to comment.