summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-01-01 08:42:31 -0500
committerMike Frysinger <vapier@google.com>2021-01-06 18:53:05 +0000
commit784ccfc040dc8efa1a64d3c7d4070b66beb15d08 (patch)
tree6b144ebd88853d04ea270d14151d27f04e122730 /tests
parent1379a9b1851e203611c490218fe62ef808a7d0ae (diff)
downloadgit-repo-784ccfc040dc8efa1a64d3c7d4070b66beb15d08.tar.gz
strip python2-only coding:utf-8 & print_function settings
We're committed to Python 3 at this point, so clean up boilerplate. Bug: https://crbug.com/gerrit/10418 Change-Id: Ib1719ba2eb65c53b94881a1a1bf203ddfcaaafed Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/292382 Reviewed-by: Chris Mcdonald <cjmcdonald@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_editor.py4
-rw-r--r--tests/test_git_command.py4
-rw-r--r--tests/test_git_config.py4
-rw-r--r--tests/test_hooks.py5
-rw-r--r--tests/test_manifest_xml.py4
-rw-r--r--tests/test_project.py4
-rw-r--r--tests/test_wrapper.py4
7 files changed, 0 insertions, 29 deletions
diff --git a/tests/test_editor.py b/tests/test_editor.py
index fbcfcdbd..cfd4f5ed 100644
--- a/tests/test_editor.py
+++ b/tests/test_editor.py
@@ -1,5 +1,3 @@
1# -*- coding:utf-8 -*-
2#
3# Copyright (C) 2019 The Android Open Source Project 1# Copyright (C) 2019 The Android Open Source Project
4# 2#
5# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +14,6 @@
16 14
17"""Unittests for the editor.py module.""" 15"""Unittests for the editor.py module."""
18 16
19from __future__ import print_function
20
21import unittest 17import unittest
22 18
23from editor import Editor 19from editor import Editor
diff --git a/tests/test_git_command.py b/tests/test_git_command.py
index 2c22b250..912a9dbe 100644
--- a/tests/test_git_command.py
+++ b/tests/test_git_command.py
@@ -1,5 +1,3 @@
1# -*- coding:utf-8 -*-
2#
3# Copyright 2019 The Android Open Source Project 1# Copyright 2019 The Android Open Source Project
4# 2#
5# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +14,6 @@
16 14
17"""Unittests for the git_command.py module.""" 15"""Unittests for the git_command.py module."""
18 16
19from __future__ import print_function
20
21import re 17import re
22import unittest 18import unittest
23 19
diff --git a/tests/test_git_config.py b/tests/test_git_config.py
index 4541b35c..964bc324 100644
--- a/tests/test_git_config.py
+++ b/tests/test_git_config.py
@@ -1,5 +1,3 @@
1# -*- coding:utf-8 -*-
2#
3# Copyright (C) 2009 The Android Open Source Project 1# Copyright (C) 2009 The Android Open Source Project
4# 2#
5# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +14,6 @@
16 14
17"""Unittests for the git_config.py module.""" 15"""Unittests for the git_config.py module."""
18 16
19from __future__ import print_function
20
21import os 17import os
22import unittest 18import unittest
23 19
diff --git a/tests/test_hooks.py b/tests/test_hooks.py
index ed8268df..6632b3e5 100644
--- a/tests/test_hooks.py
+++ b/tests/test_hooks.py
@@ -1,5 +1,3 @@
1# -*- coding:utf-8 -*-
2#
3# Copyright (C) 2019 The Android Open Source Project 1# Copyright (C) 2019 The Android Open Source Project
4# 2#
5# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +14,6 @@
16 14
17"""Unittests for the hooks.py module.""" 15"""Unittests for the hooks.py module."""
18 16
19from __future__ import print_function
20
21import hooks 17import hooks
22import unittest 18import unittest
23 19
@@ -28,7 +24,6 @@ class RepoHookShebang(unittest.TestCase):
28 """Lines w/out shebangs should be rejected.""" 24 """Lines w/out shebangs should be rejected."""
29 DATA = ( 25 DATA = (
30 '', 26 '',
31 '# -*- coding:utf-8 -*-\n',
32 '#\n# foo\n', 27 '#\n# foo\n',
33 '# Bad shebang in script\n#!/foo\n' 28 '# Bad shebang in script\n#!/foo\n'
34 ) 29 )
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py
index 2a8c3f66..d53ea568 100644
--- a/tests/test_manifest_xml.py
+++ b/tests/test_manifest_xml.py
@@ -1,5 +1,3 @@
1# -*- coding:utf-8 -*-
2#
3# Copyright (C) 2019 The Android Open Source Project 1# Copyright (C) 2019 The Android Open Source Project
4# 2#
5# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +14,6 @@
16 14
17"""Unittests for the manifest_xml.py module.""" 15"""Unittests for the manifest_xml.py module."""
18 16
19from __future__ import print_function
20
21import os 17import os
22import shutil 18import shutil
23import tempfile 19import tempfile
diff --git a/tests/test_project.py b/tests/test_project.py
index 02285e2f..7dfbabb3 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -1,5 +1,3 @@
1# -*- coding:utf-8 -*-
2#
3# Copyright (C) 2019 The Android Open Source Project 1# Copyright (C) 2019 The Android Open Source Project
4# 2#
5# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +14,6 @@
16 14
17"""Unittests for the project.py module.""" 15"""Unittests for the project.py module."""
18 16
19from __future__ import print_function
20
21import contextlib 17import contextlib
22import os 18import os
23import shutil 19import shutil
diff --git a/tests/test_wrapper.py b/tests/test_wrapper.py
index d7e5800f..5e2cfa57 100644
--- a/tests/test_wrapper.py
+++ b/tests/test_wrapper.py
@@ -1,5 +1,3 @@
1# -*- coding:utf-8 -*-
2#
3# Copyright (C) 2015 The Android Open Source Project 1# Copyright (C) 2015 The Android Open Source Project
4# 2#
5# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +14,6 @@
16 14
17"""Unittests for the wrapper.py module.""" 15"""Unittests for the wrapper.py module."""
18 16
19from __future__ import print_function
20
21import contextlib 17import contextlib
22import os 18import os
23import re 19import re