Skip to content

Commit b807c52

Browse files
committed
Merge branch 'da/maint-python-startup'
* da/maint-python-startup: Makefile: Remove usage of deprecated Python "has_key" method
2 parents 4a8295f + 0ae0840 commit b807c52

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,9 +1612,8 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py
16121612
-e '}' \
16131613
-e 's|^import sys.*|&; \\\
16141614
import os; \\\
1615-
sys.path[0] = os.environ.has_key("GITPYTHONLIB") and \\\
1616-
os.environ["GITPYTHONLIB"] or \\\
1617-
"@@INSTLIBDIR@@"|' \
1615+
sys.path.insert(0, os.getenv("GITPYTHONLIB",\
1616+
"@@INSTLIBDIR@@"));|' \
16181617
-e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
16191618
$@.py >$@+ && \
16201619
chmod +x $@+ && \

0 commit comments

Comments
 (0)