isort: Reformat using isort.

This commit is contained in:
PIG208 2021-05-28 17:00:04 +08:00 committed by Tim Abbott
parent 37e2596124
commit 5580c68ae5
162 changed files with 539 additions and 444 deletions

View file

@ -1,16 +1,17 @@
#!/usr/bin/env python3
import sys
import time
import hashlib
import logging
import optparse
import random
import logging
import subprocess
import hashlib
import zephyr
import zulip
import sys
import time
from typing import Dict, List, Set, Tuple
import zephyr
import zulip
parser = optparse.OptionParser()
parser.add_option('--verbose',
dest='verbose',

View file

@ -1,8 +1,8 @@
#!/usr/bin/env python3
import os
import sys
import subprocess
import base64
import os
import subprocess
import sys
short_user = sys.argv[1]
api_key = sys.argv[2]

View file

@ -1,14 +1,15 @@
#!/usr/bin/env python3
import sys
import os
import logging
import argparse
import json
import logging
import os
import sys
import unicodedata
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'api'))
import zulip
def write_public_streams() -> None:
public_streams = set()

View file

@ -1,10 +1,10 @@
#!/usr/bin/env python3
import sys
import subprocess
import os
import traceback
import signal
import subprocess
import sys
import traceback
sys.path[:0] = [os.path.dirname(__file__)]
from zephyr_mirror_backend import parse_args
@ -13,6 +13,7 @@ from zephyr_mirror_backend import parse_args
from types import FrameType
def die(signal: int, frame: FrameType) -> None:
# We actually want to exit, so run os._exit (so as not to be caught and restarted)

View file

@ -1,21 +1,20 @@
#!/usr/bin/env python3
from typing import Any, Dict, IO, List, NoReturn, Optional, Set, Tuple, Union
from types import FrameType
import sys
import hashlib
import json
import re
import time
import subprocess
import logging
import optparse
import os
import textwrap
import signal
import logging
import hashlib
import tempfile
import re
import select
import signal
import subprocess
import sys
import tempfile
import textwrap
import time
from types import FrameType
from typing import IO, Any, Dict, List, NoReturn, Optional, Set, Tuple, Union
from typing_extensions import Literal, TypedDict