Skip to content

Commit ec68bd9

Browse files
committed
Remove future module #1297
Signed-off-by: Kainaat Singh <kainaatsingh93@gmail.com> remove unwanted lines
1 parent 08f48d5 commit ec68bd9

43 files changed

Lines changed: 0 additions & 333 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/aggregate_tests.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@
2626
'tuf/tests'. Use --random to run the tests in random order.
2727
"""
2828

29-
# Help with Python 3 compatibility, where the print statement is a function, an
30-
# implicit relative import is invalid, and the '/' operator performs true
31-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
32-
from __future__ import print_function
33-
from __future__ import absolute_import
34-
from __future__ import division
35-
from __future__ import unicode_literals
36-
3729
import sys
3830
import unittest
3931

tests/simple_https_server.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@
2929
http://docs.python.org/library/simplehttpserver.html#module-SimpleHTTPServer
3030
"""
3131

32-
# Help with Python 3 compatibility, where the print statement is a function, an
33-
# implicit relative import is invalid, and the '/' operator performs true
34-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
35-
from __future__ import print_function
36-
from __future__ import absolute_import
37-
from __future__ import division
38-
from __future__ import unicode_literals
39-
4032
import sys
4133
import ssl
4234
import os

tests/simple_server.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
http://docs.python.org/library/simplehttpserver.html#module-SimpleHTTPServer
2626
"""
2727

28-
# Help with Python 3 compatibility, where the print statement is a function, an
29-
# implicit relative import is invalid, and the '/' operator performs true
30-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
31-
from __future__ import print_function
32-
from __future__ import absolute_import
33-
from __future__ import division
34-
from __future__ import unicode_literals
35-
3628
import sys
3729
import random
3830
import socketserver

tests/slow_retrieval_server.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
interval 'DELAY'). The server is used in 'test_slow_retrieval_attack.py'.
2222
"""
2323

24-
# Help with Python 3 compatibility, where the print statement is a function, an
25-
# implicit relative import is invalid, and the '/' operator performs true
26-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
27-
from __future__ import print_function
28-
from __future__ import absolute_import
29-
from __future__ import division
30-
from __future__ import unicode_literals
31-
3224
import os
3325
import sys
3426
import time

tests/test_arbitrary_package_attack.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@
2828
There is no difference between 'updates' and 'target' files.
2929
"""
3030

31-
# Help with Python 3 compatibility, where the print statement is a function, an
32-
# implicit relative import is invalid, and the '/' operator performs true
33-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
34-
from __future__ import print_function
35-
from __future__ import absolute_import
36-
from __future__ import division
37-
from __future__ import unicode_literals
38-
3931
import os
4032
import tempfile
4133
import shutil

tests/test_download.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
TODO: Adopt the environment variable management from test_proxy_use.py here.
2626
"""
2727

28-
# Help with Python 3 compatibility, where the print statement is a function, an
29-
# implicit relative import is invalid, and the '/' operator performs true
30-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
31-
from __future__ import print_function
32-
from __future__ import absolute_import
33-
from __future__ import division
34-
from __future__ import unicode_literals
35-
3628
import hashlib
3729
import logging
3830
import os

tests/test_endless_data_attack.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@
3131
There is no difference between 'updates' and 'target' files.
3232
"""
3333

34-
# Help with Python 3 compatibility, where the print statement is a function, an
35-
# implicit relative import is invalid, and the '/' operator performs true
36-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
37-
from __future__ import print_function
38-
from __future__ import absolute_import
39-
from __future__ import division
40-
from __future__ import unicode_literals
41-
4234
import os
4335
import tempfile
4436
import shutil

tests/test_extraneous_dependencies_attack.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@
3434
There is no difference between 'updates' and 'target' files.
3535
"""
3636

37-
# Help with Python 3 compatibility, where the print statement is a function, an
38-
# implicit relative import is invalid, and the '/' operator performs true
39-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
40-
from __future__ import print_function
41-
from __future__ import absolute_import
42-
from __future__ import division
43-
from __future__ import unicode_literals
44-
4537
import os
4638
import tempfile
4739
import shutil

tests/test_fetcher.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
"""Unit test for RequestsFetcher.
77
"""
8-
# Help with Python 2 compatibility, where the '/' operator performs
9-
# integer division.
10-
from __future__ import division
118

129
import logging
1310
import os

tests/test_formats.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@
2020
Unit test for 'formats.py'
2121
"""
2222

23-
# Help with Python 3 compatibility, where the print statement is a function, an
24-
# implicit relative import is invalid, and the '/' operator performs true
25-
# division. Example: print 'hello world' raises a 'SyntaxError' exception.
26-
from __future__ import print_function
27-
from __future__ import absolute_import
28-
from __future__ import division
29-
from __future__ import unicode_literals
30-
3123
import unittest
3224
import datetime
3325
import sys

0 commit comments

Comments
 (0)