From 849f8a1175b24cfda3975333e135fa33c6acaa03 Mon Sep 17 00:00:00 2001 From: Ding-Yi Chen Date: Fri, 13 Apr 2018 15:21:32 +0800 Subject: [PATCH] Remove import typing as it require extra dependencies --- JenkinsHelper.py | 2 +- ZanataWar.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/JenkinsHelper.py b/JenkinsHelper.py index 837c2e1..37b8b6d 100755 --- a/JenkinsHelper.py +++ b/JenkinsHelper.py @@ -11,7 +11,7 @@ import os.path import re -from typing import List, Any # noqa: F401 # pylint: disable=unused-import +# from typing import List, Any # noqa: F401 # pylint: disable=unused-import # We need to import 'List' and 'Any' for mypy to work from ZanataFunctions import UrlHelper, logging_init diff --git a/ZanataWar.py b/ZanataWar.py index b3573a7..d9601bd 100755 --- a/ZanataWar.py +++ b/ZanataWar.py @@ -1,7 +1,7 @@ #!/usr/bin/env python """Zanata WAR Helper functions""" -from typing import List, Any # noqa: F401 # pylint: disable=unused-import +#from typing import List, Any # noqa: F401 # pylint: disable=unused-import # We need to import 'List' and 'Any' for mypy to work import argparse @@ -198,13 +198,15 @@ def parse(): deploy_local_war_parser = subparsers.add_parser( 'deploy-local-war', - help='deploy the existing local WAR to server (assuming you are able to sudo)', + help="""deploy the existing local WAR to server + (assuming you are able to sudo)""", parents=[war_parent_parser, ssh_parent_parser]) deploy_local_war_parser.set_defaults(func=deploy_local_war) deploy_parser = subparsers.add_parser( 'deploy', - help='deploy the last successful built WAR to server (assuming you are able to sudo)', + help="""deploy the last successful built WAR to server + (assuming you are able to sudo)""", parents=[job_parent_parser, war_parent_parser, ssh_parent_parser]) deploy_parser.set_defaults(func=deploy) return parser.parse_args()