scripts: Change use of typing.Text to str.

This commit is contained in:
Aditya Bansal
2018-05-14 03:55:35 +05:30
parent 610f48dcbc
commit cb9d8f6d48
3 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import subprocess
import sys
if False:
from typing import Set, Text
from typing import Set
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(ZULIP_PATH)
@@ -36,7 +36,7 @@ def parse_args():
return args
def get_deployments_to_be_purged(recent_deployments):
# type: (Set[Text]) -> Set[Text]
# type: (Set[str]) -> Set[str]
all_deployments = set([os.path.join(DEPLOYMENTS_DIR, deployment)
for deployment in os.listdir(DEPLOYMENTS_DIR)])
deployments_to_purge = set()