Skip to content

Commit

Permalink
Minor code comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed May 11, 2023
1 parent 47161c6 commit e8ab921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setupsrc/pypdfium2_setup/packaging_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import ctypesgen
except ImportError:
# ctypesgen not importable, might be installed on a different python version
# in that case, we don't if it's our fork, so assume mainline ctypesgen for compatibility
# in that case, we don't know if it's our fork, so assume mainline ctypesgen for compatibility
CTYPESGEN_IS_FORK = False
else:
CTYPESGEN_IS_FORK = getattr(ctypesgen, "PYPDFIUM2_SPECIFIC", False)
Expand Down Expand Up @@ -96,7 +96,7 @@ class PlatformNames:

def plat_to_system(pl_name):
if pl_name == PlatformNames.sourcebuild:
# NOTE If doing a sourcebuild on an unknown host system, this returns None, which will cause binary detection code to fail (we need to know the platform-specific binary name).
# FIXME If doing a sourcebuild on an unknown host system, this returns None, which will cause binary detection code to fail (we need to know the platform-specific binary name) - handle this upstream with fallback value?
return Host.system
result = [s for s in BinarySystems if pl_name.startswith(s)]
assert len(result) == 1
Expand Down

0 comments on commit e8ab921

Please sign in to comment.