Skip to content

Commit

Permalink
Random warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Dec 13, 2024
1 parent 60c203c commit fe785bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions aliBuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def doMain(args, parser):
# do not get fooled when parsing localized messages.
# We set ALIBUILD_ARCHITECTURE so that it's picked up by the external
# command which does the reporting.
if not "architecture" in args:
if "architecture" not in args:
args.architecture = detectArch()
ENVIRONMENT_OVERRIDES = {
"LANG": "C",
Expand Down Expand Up @@ -57,7 +57,7 @@ def doMain(args, parser):
error(e.message)
exit(1)

if args.action == "version" or args.action == None:
if args.action == "version" or args.action is None:
print("aliBuild version: {version} ({arch})".format(
version=__version__ or "unknown", arch=args.architecture or "unknown"))
sys.exit(0)
Expand Down Expand Up @@ -118,6 +118,7 @@ if __name__ == "__main__":
from io import StringIO
pr = cProfile.Profile()
pr.enable()

def profiler():
pr.disable()
print("profiler stopped")
Expand Down
2 changes: 1 addition & 1 deletion alibuild_helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Single-source a PEP440-compliant version using setuptools_scm.

from typing import Optional
__version__ : Optional[str]
__version__: Optional[str]
try:
# This is an sdist or wheel, and it's properly installed.
from alibuild_helpers._version import version as __version__
Expand Down

0 comments on commit fe785bd

Please sign in to comment.