From dee5ca639b6076ba9c16338ec3b3c9fc97287012 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Servant/PY/Treq.hs b/src/Servant/PY/Treq.hs index 8f9ef24..d99e8aa 100644 --- a/src/Servant/PY/Treq.hs +++ b/src/Servant/PY/Treq.hs @@ -45,13 +45,10 @@ 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" ] - treqWithDef :: PythonRequest -> Text treqWithDef = generatePyTreqWith defCommonGeneratorOptions