Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 837293c

Browse files
Remove obsolete __future__ imports (#8337)
1 parent c3c9732 commit 837293c

File tree

19 files changed

+2
-40
lines changed

19 files changed

+2
-40
lines changed

changelog.d/8337.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove `__future__` imports related to Python 2 compatibility.

contrib/cmdclient/console.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# limitations under the License.
1616

1717
""" Starts a synapse client console. """
18-
from __future__ import print_function
19-
2018
import argparse
2119
import cmd
2220
import getpass

contrib/cmdclient/http.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
from __future__ import print_function
17-
1816
import json
1917
import urllib
2018
from pprint import pformat

contrib/graph/graph.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import argparse
42
import cgi
53
import datetime

contrib/graph/graph3.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import argparse
42
import cgi
53
import datetime

contrib/jitsimeetbridge/jitsimeetbridge.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
Requires:
1111
npm install jquery jsdom
1212
"""
13-
from __future__ import print_function
14-
1513
import json
1614
import subprocess
1715
import time

contrib/scripts/kick_users.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
from __future__ import print_function
32

43
import json
54
import sys
@@ -8,11 +7,6 @@
87

98
import requests
109

11-
try:
12-
raw_input
13-
except NameError: # Python 3
14-
raw_input = input
15-
1610

1711
def _mkurl(template, kws):
1812
for key in kws:
@@ -58,7 +52,7 @@ def main(hs, room_id, access_token, user_id_prefix, why):
5852
print("The following user IDs will be kicked from %s" % room_name)
5953
for uid in kick_list:
6054
print(uid)
61-
doit = raw_input("Continue? [Y]es\n")
55+
doit = input("Continue? [Y]es\n")
6256
if len(doit) > 0 and doit.lower() == "y":
6357
print("Kicking members...")
6458
# encode them all

scripts-dev/definitions.py

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

3-
from __future__ import print_function
4-
53
import argparse
64
import ast
75
import os

scripts-dev/dump_macaroon.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env python2
22

3-
from __future__ import print_function
4-
53
import sys
64

75
import pymacaroons

scripts-dev/federation_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
from __future__ import print_function
19-
2018
import argparse
2119
import base64
2220
import json

0 commit comments

Comments
 (0)