diff options
| author | Mike Frysinger <vapier@google.com> | 2021-01-01 08:42:31 -0500 |
|---|---|---|
| committer | Mike Frysinger <vapier@google.com> | 2021-01-06 18:53:05 +0000 |
| commit | 784ccfc040dc8efa1a64d3c7d4070b66beb15d08 (patch) | |
| tree | 6b144ebd88853d04ea270d14151d27f04e122730 /tests/test_hooks.py | |
| parent | 1379a9b1851e203611c490218fe62ef808a7d0ae (diff) | |
| download | git-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/test_hooks.py')
| -rw-r--r-- | tests/test_hooks.py | 5 |
1 files changed, 0 insertions, 5 deletions
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 | ||
| 19 | from __future__ import print_function | ||
| 20 | |||
| 21 | import hooks | 17 | import hooks |
| 22 | import unittest | 18 | import 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 | ) |
