summary refs log tree commit diff
path: root/contrib/scripts/kick_users.py
diff options
context:
space:
mode:
authorJonathan de Jong <jonathandejong02@gmail.com>2020-09-17 14:37:01 +0200
committerGitHub <noreply@github.com>2020-09-17 08:37:01 -0400
commit837293c314b47e988fe9532115476a6536cd6406 (patch)
tree9d0ec87ddbe4372a07f8b8053b3f8e3e5c3bd3ee /contrib/scripts/kick_users.py
parentUse admin_patterns for all admin APIs. (#8331) (diff)
downloadsynapse-837293c314b47e988fe9532115476a6536cd6406.tar.xz
Remove obsolete __future__ imports (#8337)
Diffstat (limited to 'contrib/scripts/kick_users.py')
-rwxr-xr-xcontrib/scripts/kick_users.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/contrib/scripts/kick_users.py b/contrib/scripts/kick_users.py
index 372dbd9e4f..f8e0c732fb 100755
--- a/contrib/scripts/kick_users.py
+++ b/contrib/scripts/kick_users.py
@@ -1,5 +1,4 @@
 #!/usr/bin/env python
-from __future__ import print_function
 
 import json
 import sys
@@ -8,11 +7,6 @@ from argparse import ArgumentParser
 
 import requests
 
-try:
-    raw_input
-except NameError:  # Python 3
-    raw_input = input
-
 
 def _mkurl(template, kws):
     for key in kws:
@@ -58,7 +52,7 @@ def main(hs, room_id, access_token, user_id_prefix, why):
     print("The following user IDs will be kicked from %s" % room_name)
     for uid in kick_list:
         print(uid)
-    doit = raw_input("Continue? [Y]es\n")
+    doit = input("Continue? [Y]es\n")
     if len(doit) > 0 and doit.lower() == "y":
         print("Kicking members...")
         # encode them all