summaryrefslogtreecommitdiffstats
path: root/debian/patches/0005-use-py3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0005-use-py3.patch')
-rw-r--r--debian/patches/0005-use-py3.patch24
1 files changed, 12 insertions, 12 deletions
diff --git a/debian/patches/0005-use-py3.patch b/debian/patches/0005-use-py3.patch
index 0db80e1..ba4f03b 100644
--- a/debian/patches/0005-use-py3.patch
+++ b/debian/patches/0005-use-py3.patch
@@ -15,7 +15,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+#!/usr/bin/env python3
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
- from __future__ import (absolute_import, division, print_function)
+ from __future__ import annotations
--- a/test/integration/targets/cli/test-cli.py
+++ b/test/integration/targets/cli/test-cli.py
@@ -1,4 +1,4 @@
@@ -60,16 +60,16 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
-#!/usr/bin/env python
+#!/usr/bin/env python3
- from __future__ import (absolute_import, division, print_function)
- __metaclass__ = type
+ from __future__ import annotations
+
--- a/test/integration/targets/pip/files/setup.py
+++ b/test/integration/targets/pip/files/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
- from __future__ import (absolute_import, division, print_function)
- __metaclass__ = type
+ from __future__ import annotations
+
--- a/test/integration/targets/service/files/ansible_test_service.py
+++ b/test/integration/targets/service/files/ansible_test_service.py
@@ -1,4 +1,4 @@
@@ -84,16 +84,16 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
-#!/usr/bin/env python
+#!/usr/bin/env python3
- from __future__ import (absolute_import, division, print_function)
- __metaclass__ = type
+ from __future__ import annotations
+
--- a/test/integration/targets/throttle/test_throttle.py
+++ b/test/integration/targets/throttle/test_throttle.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
- from __future__ import (absolute_import, division, print_function)
- __metaclass__ = type
+ from __future__ import annotations
+
--- a/test/integration/targets/var_precedence/ansible-var-precedence-check.py
+++ b/test/integration/targets/var_precedence/ansible-var-precedence-check.py
@@ -1,4 +1,4 @@
@@ -116,8 +116,8 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
-#!/usr/bin/env python
+#!/usr/bin/env python3
- from __future__ import (absolute_import, division, print_function)
- __metaclass__ = type
+ from __future__ import annotations
+
--- a/test/integration/targets/cli/test_k_and_K.py
+++ b/test/integration/targets/cli/test_k_and_K.py
@@ -1,4 +1,4 @@
@@ -125,7 +125,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+#!/usr/bin/env python3
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
- # Make coding more python3-ish
+ from __future__ import annotations
--- a/test/integration/targets/service_facts/files/ansible_test_service.py
+++ b/test/integration/targets/service_facts/files/ansible_test_service.py
@@ -1,4 +1,4 @@