csantanapr closed pull request #3627: remove unused imports or dead variables
as reported in travis build.
URL: https://github.com/apache/incubator-openwhisk/pull/3627
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/actionRuntimes/actionProxy/invoke.py
b/actionRuntimes/actionProxy/invoke.py
index b4957f58c4..1b3b47142a 100755
--- a/actionRuntimes/actionProxy/invoke.py
+++ b/actionRuntimes/actionProxy/invoke.py
@@ -36,7 +36,6 @@
import base64
import requests
import codecs
-import traceback
import argparse
try:
import argcomplete
diff --git
a/performance/gatling_tests/src/gatling/resources/data/pythonAction.py
b/performance/gatling_tests/src/gatling/resources/data/pythonAction.py
index 0accf23da9..6d02cdd730 100644
--- a/performance/gatling_tests/src/gatling/resources/data/pythonAction.py
+++ b/performance/gatling_tests/src/gatling/resources/data/pythonAction.py
@@ -1,7 +1,6 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
contributor
# license agreements; and to You under the Apache License, Version
2.0.imitations under the License.
-import sys
def main(dict):
if 'text' in dict:
text = dict['text']
diff --git a/tests/dat/actions/sleep.py b/tests/dat/actions/sleep.py
index 362374c3c4..d8dbe3e640 100644
--- a/tests/dat/actions/sleep.py
+++ b/tests/dat/actions/sleep.py
@@ -9,7 +9,6 @@
# @param parm Object with Number property sleepTimeInMs
# @returns Object with String property msg describing how long the function
slept
#
-import sys
import time
def main(parm):
diff --git a/tools/admin/wskadmin b/tools/admin/wskadmin
index 4b85796bcf..74b8ebaad5 100755
--- a/tools/admin/wskadmin
+++ b/tools/admin/wskadmin
@@ -531,7 +531,6 @@ def setLimitsCmd(args, props):
return 1
def getLimitsCmd(args, props):
- argsDict = vars(args)
docId = args.namespace + "/limits"
(dbDoc, res) = getDocumentFromDb(props, quote_plus(docId), args.verbose)
@@ -550,7 +549,6 @@ def getLimitsCmd(args, props):
return 1
def deleteLimitsCmd(args, props):
- argsDict = vars(args)
docId = quote_plus(args.namespace + "/limits")
(dbDoc, res) = getDocumentFromDb(props, docId, args.verbose)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services