Skip to content

Commit 316b14b

Browse files
authored
Remove duplicate import of 'version' in __init__.py
Removed duplicate import of 'version' from importlib.metadata.
1 parent b0af740 commit 316b14b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pylib/gyp/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import shlex
1414
import sys
1515
import traceback
16+
from importlib.metadata import version
1617

1718
import gyp.input
1819
from gyp.common import GypError
@@ -491,8 +492,6 @@ def gyp_main(args):
491492

492493
options, build_files_arg = parser.parse_args(args)
493494
if options.version:
494-
from importlib.metadata import version
495-
496495
print(f"v{version('gyp-next')}")
497496
return 0
498497
build_files = build_files_arg

0 commit comments

Comments
 (0)