mirror of https://github.com/zulip/zulip.git
Remove unused imports
(imported from commit eb576627ff72e57fee0e3a4c357f51ad74cd6c86)
This commit is contained in:
parent
9629e7111b
commit
eef027560a
|
@ -1,19 +1,9 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import urllib
|
|
||||||
import sys
|
import sys
|
||||||
import logging
|
|
||||||
import traceback
|
|
||||||
import simplejson
|
|
||||||
import re
|
|
||||||
import time
|
import time
|
||||||
import subprocess
|
|
||||||
import optparse
|
import optparse
|
||||||
import os
|
import os
|
||||||
import datetime
|
|
||||||
import textwrap
|
|
||||||
import signal
|
|
||||||
import random
|
import random
|
||||||
from urllib2 import HTTPError
|
|
||||||
|
|
||||||
root_path = "/mit/tabbott/for_friends"
|
root_path = "/mit/tabbott/for_friends"
|
||||||
sys.path.append(root_path + "/python-zephyr")
|
sys.path.append(root_path + "/python-zephyr")
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import urllib
|
|
||||||
import sys
|
import sys
|
||||||
import logging
|
|
||||||
import traceback
|
import traceback
|
||||||
import simplejson
|
import simplejson
|
||||||
import re
|
import re
|
||||||
|
@ -12,7 +10,6 @@ import os
|
||||||
import datetime
|
import datetime
|
||||||
import textwrap
|
import textwrap
|
||||||
import signal
|
import signal
|
||||||
from urllib2 import HTTPError
|
|
||||||
|
|
||||||
root_path = "/mit/tabbott/for_friends"
|
root_path = "/mit/tabbott/for_friends"
|
||||||
sys.path.append(root_path + "/python-zephyr")
|
sys.path.append(root_path + "/python-zephyr")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from django.contrib.auth.models import User, check_password
|
from django.contrib.auth.models import User
|
||||||
|
|
||||||
class EmailAuthBackend(object):
|
class EmailAuthBackend(object):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import re
|
|
||||||
import markdown
|
import markdown
|
||||||
import logging
|
import logging
|
||||||
import traceback
|
import traceback
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import os
|
import os
|
||||||
import signal
|
|
||||||
import pty
|
import pty
|
||||||
import sys
|
import sys
|
||||||
import errno
|
import errno
|
||||||
|
@ -50,7 +49,6 @@ def run_parallel(job, data, threads=6):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# run some unit tests
|
# run some unit tests
|
||||||
import random
|
|
||||||
import time
|
import time
|
||||||
jobs = [10, 19, 18, 6, 14, 12, 8, 2, 1, 13, 3, 17, 9, 11, 5, 16, 7, 15, 4]
|
jobs = [10, 19, 18, 6, 14, 12, 8, 2, 1, 13, 3, 17, 9, 11, 5, 16, 7, 15, 4]
|
||||||
expected_output = [6, 10, 12, 2, 1, 14, 8, 3, 18, 19, 5, 9, 13, 11, 4, 7, 17, 16, 15]
|
expected_output = [6, 10, 12, 2, 1, 14, 8, 3, 18, 19, 5, 9, 13, 11, 4, 7, 17, 16, 15]
|
||||||
|
|
|
@ -6,10 +6,9 @@ from zephyr.models import Message, UserProfile, Stream, Recipient, Client, \
|
||||||
Subscription, Huddle, get_huddle, Realm, UserMessage, get_user_profile_by_id, \
|
Subscription, Huddle, get_huddle, Realm, UserMessage, get_user_profile_by_id, \
|
||||||
bulk_create_realms, bulk_create_streams, bulk_create_users, bulk_create_huddles, \
|
bulk_create_realms, bulk_create_streams, bulk_create_users, bulk_create_huddles, \
|
||||||
bulk_create_clients, \
|
bulk_create_clients, \
|
||||||
create_user, do_send_message, create_user_if_needed, create_stream_if_needed, \
|
do_send_message, \
|
||||||
filter_by_subscriptions, get_huddle_hash, get_client, do_activate_user
|
get_huddle_hash, get_client, do_activate_user
|
||||||
from zephyr.lib.parallel import run_parallel
|
from zephyr.lib.parallel import run_parallel
|
||||||
from zephyr.lib.initial_password import initial_password
|
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from api.bots import mit_subs_list
|
from api.bots import mit_subs_list
|
||||||
|
@ -20,9 +19,6 @@ import datetime
|
||||||
import random
|
import random
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import time
|
|
||||||
import hashlib
|
|
||||||
import base64
|
|
||||||
from optparse import make_option
|
from optparse import make_option
|
||||||
|
|
||||||
settings.HAVE_TORNADO_SERVER = False
|
settings.HAVE_TORNADO_SERVER = False
|
||||||
|
|
|
@ -5,11 +5,9 @@ from django.core.urlresolvers import reverse
|
||||||
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseBadRequest, HttpResponseForbidden
|
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseBadRequest, HttpResponseForbidden
|
||||||
from django.shortcuts import render_to_response
|
from django.shortcuts import render_to_response
|
||||||
from django.template import RequestContext
|
from django.template import RequestContext
|
||||||
from django.shortcuts import render
|
|
||||||
from django.utils.timezone import utc
|
from django.utils.timezone import utc
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.contrib.auth.views import login as django_login_page
|
from django.contrib.auth.views import login as django_login_page
|
||||||
from django.contrib.auth.models import User
|
|
||||||
from zephyr.models import Message, UserProfile, Stream, Subscription, \
|
from zephyr.models import Message, UserProfile, Stream, Subscription, \
|
||||||
Recipient, get_display_recipient, get_huddle, Realm, UserMessage, \
|
Recipient, get_display_recipient, get_huddle, Realm, UserMessage, \
|
||||||
do_add_subscription, do_remove_subscription, \
|
do_add_subscription, do_remove_subscription, \
|
||||||
|
|
Loading…
Reference in New Issue