Merge pull request #4761 from fsateler/python3

Explicitly use python3 everywhere
This commit is contained in:
Martin Pitt 2016-11-28 21:10:57 +01:00 committed by GitHub
commit 920ec31b5f
9 changed files with 9 additions and 4 deletions

View file

@ -263,7 +263,7 @@ AC_ARG_WITH([python],
have_lxml=no
AS_IF([test "x$with_python" != "xno"], [
AM_PATH_PYTHON(,, [:])
AM_PATH_PYTHON([3],, [:])
AS_IF([test "x$PYTHON" != "x:"], [
AC_MSG_CHECKING([for python lxml module])
AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes])

View file

@ -1,5 +1,4 @@
#!/usr/bin/python
from __future__ import print_function
#!/usr/bin/python3
import sys
import argparse

1
test/rule-syntax-check.py Normal file → Executable file
View file

@ -1,3 +1,4 @@
#!/usr/bin/python3
# Simple udev rules syntax checker
#
# (C) 2010 Canonical Ltd.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
#
# systemd-sysv-generator integration test
#

View file

@ -1,3 +1,4 @@
#!/usr/bin/python3
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
#
# This file is part of systemd.

View file

@ -1,3 +1,4 @@
#!/usr/bin/python3
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
#
# This file is part of systemd.

View file

@ -1,3 +1,4 @@
#!/usr/bin/python3
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
#
# This file is part of systemd.

View file

@ -1,3 +1,4 @@
#!/usr/bin/python3
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
#
# This file is part of systemd.

View file

@ -1,3 +1,4 @@
#!/usr/bin/python3
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
#
# This file is part of systemd.