Skip to content

Commit e332a7d

Browse files
committed
*: Remove Python2 __future__ imports throughout the codebase
1 parent 6fc9998 commit e332a7d

Some content is hidden

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

81 files changed

+8
-159
lines changed

demos/file_upload/file_uploader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
See also file_receiver.py in this directory, a server that receives uploads.
1010
"""
1111

12-
from __future__ import print_function
1312
import mimetypes
1413
import os
1514
import sys

demos/tcpecho/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22

3-
from __future__ import print_function
43
from tornado.ioloop import IOLoop
54
from tornado import gen
65
from tornado.tcpclient import TCPClient

maint/circlerefs/circlerefs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
increases memory footprint and CPU overhead, so we try to eliminate
88
circular references created by normal operation.
99
"""
10-
from __future__ import print_function
1110

1211
import gc
1312
import traceback

maint/scripts/test_resolvers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env python
2-
from __future__ import print_function
3-
42
import pprint
53
import socket
64

maint/vm/windows/bootstrap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
To run under cygwin (which must be installed separately), run
2222
cd /cygdrive/e; python -m tornado.test.runtests
2323
"""
24-
from __future__ import absolute_import, division, print_function
2524

2625
import os
2726
import subprocess

tornado/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
"""The Tornado web server and tools."""
1717

18-
from __future__ import absolute_import, division, print_function
19-
2018
# version is a human-readable version number.
2119

2220
# version_info is a four-tuple for programmatic comparison. The first

tornado/_locale_data.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
"""Data used by the tornado.locale module."""
1818

19-
from __future__ import absolute_import, division, print_function
20-
2119
LOCALE_NAMES = {
2220
"af_ZA": {"name_en": u"Afrikaans", "name": u"Afrikaans"},
2321
"am_ET": {"name_en": u"Amharic", "name": u"አማርኛ"},

tornado/auth.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ async def get(self):
5656
5757
"""
5858

59-
from __future__ import absolute_import, division, print_function
60-
6159
import base64
6260
import binascii
6361
import hashlib

tornado/autoreload.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
4444
"""
4545

46-
from __future__ import absolute_import, division, print_function
47-
4846
import os
4947
import sys
5048

tornado/concurrent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
implementation, applications rarely need to interact with it
2727
directly.
2828
"""
29-
from __future__ import absolute_import, division, print_function
3029

3130
import asyncio
3231
from concurrent import futures

0 commit comments

Comments
 (0)