typing: Remove ‘if False’ guard for typing imports.
typing is in the Python 3.5 standard library. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
75d1fe2b41
commit
fe72f3b131
|
@ -8,9 +8,7 @@ import argparse
|
||||||
import zulip
|
import zulip
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
from typing import Any, Dict
|
||||||
if False:
|
|
||||||
from typing import Any, Dict
|
|
||||||
|
|
||||||
usage = """./irc-mirror.py --irc-server=IRC_SERVER --channel=<CHANNEL> --nick-prefix=<NICK> --stream=<STREAM> [optional args]
|
usage = """./irc-mirror.py --irc-server=IRC_SERVER --channel=<CHANNEL> --nick-prefix=<NICK> --stream=<STREAM> [optional args]
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import os.path
|
import os.path
|
||||||
import pysvn
|
import pysvn
|
||||||
|
from typing import Any, Dict, List, Optional, Text, Tuple, Union
|
||||||
if False:
|
|
||||||
from typing import Any, Dict, List, Optional, Text, Tuple, Union
|
|
||||||
|
|
||||||
sys.path.insert(0, os.path.dirname(__file__))
|
sys.path.insert(0, os.path.dirname(__file__))
|
||||||
import zulip_svn_config as config
|
import zulip_svn_config as config
|
||||||
|
|
|
@ -19,8 +19,7 @@ sys.path.insert(0, os.path.dirname(__file__))
|
||||||
import zulip_trac_config as config
|
import zulip_trac_config as config
|
||||||
VERSION = "0.9"
|
VERSION = "0.9"
|
||||||
|
|
||||||
if False:
|
from typing import Any, Dict
|
||||||
from typing import Any, Dict
|
|
||||||
|
|
||||||
if config.ZULIP_API_PATH is not None:
|
if config.ZULIP_API_PATH is not None:
|
||||||
sys.path.append(config.ZULIP_API_PATH)
|
sys.path.append(config.ZULIP_API_PATH)
|
||||||
|
|
|
@ -10,8 +10,7 @@ import hashlib
|
||||||
import zephyr
|
import zephyr
|
||||||
import zulip
|
import zulip
|
||||||
|
|
||||||
if False:
|
from typing import Any, Dict, List, Set, Tuple
|
||||||
from typing import Any, Dict, List, Set, Tuple
|
|
||||||
|
|
||||||
parser = optparse.OptionParser()
|
parser = optparse.OptionParser()
|
||||||
parser.add_option('--verbose',
|
parser.add_option('--verbose',
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
if False:
|
from typing import Any, Dict, Generator, List, Tuple
|
||||||
from typing import Any, Dict, Generator, List, Tuple
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -4,8 +4,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import glob
|
import glob
|
||||||
import subprocess
|
import subprocess
|
||||||
if False:
|
from typing import Any, Dict, Optional
|
||||||
from typing import Any, Dict, Optional
|
|
||||||
|
|
||||||
ZULIP_BOTS_VERSION = "0.6.4"
|
ZULIP_BOTS_VERSION = "0.6.4"
|
||||||
IS_PYPA_PACKAGE = False
|
IS_PYPA_PACKAGE = False
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
if False:
|
from typing import Any, Dict, Optional
|
||||||
from typing import Any, Dict, Optional
|
|
||||||
|
|
||||||
ZULIP_BOTSERVER_VERSION = "0.6.4"
|
ZULIP_BOTSERVER_VERSION = "0.6.4"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue