From 2375736ad28a2e6d1569f52a4778063c36baa7b0 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Wed, 9 Jan 2019 15:59:12 -0500 Subject: [PATCH] eliminate unused imports --- src/Servant/PY/Treq.hs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Servant/PY/Treq.hs b/src/Servant/PY/Treq.hs index 8f9ef24..b50a716 100644 --- a/src/Servant/PY/Treq.hs +++ b/src/Servant/PY/Treq.hs @@ -45,13 +45,9 @@ treq reqs = defPyImports <> mconcat (map treqWithDef reqs) defPyImports :: Text defPyImports = T.unlines - [ "from urllib import parse" - , "" -- Separate stdlib from 3rd-party imports - , "from twisted.internet.defer import inlineCallbacks, returnValue" - , "import treq" + [ "from twisted.internet.defer import inlineCallbacks, returnValue" ] - treqWithDef :: PythonRequest -> Text treqWithDef = generatePyTreqWith defCommonGeneratorOptions