mirror of https://github.com/zulip/zulip.git
Make tools/update-deployment pass mypy check.
This commit is contained in:
parent
fb62e5c7bd
commit
29af1419db
|
@ -61,7 +61,6 @@ bots/gcal-bot
|
|||
bots/githook-post-receive
|
||||
tools/deprecated/inject-messages/inject-messages
|
||||
tools/deprecated/review
|
||||
tools/update-deployment
|
||||
""".split()
|
||||
|
||||
exclude_scripts_py2 = [] # type: List[str]
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import six.moves.configparser
|
||||
from six.moves import configparser # type: ignore # https://github.com/python/typeshed/issues/307
|
||||
import sys
|
||||
import subprocess
|
||||
import logging
|
||||
|
||||
config_file = six.moves.configparser.RawConfigParser()
|
||||
config_file = configparser.RawConfigParser()
|
||||
config_file.read("/etc/zulip/zulip.conf")
|
||||
|
||||
ZULIP_COM = config_file.get('machine', 'deploy_type') in ['zulip.com-prod',
|
||||
|
|
Loading…
Reference in New Issue