Skip to content

Commit

Permalink
eliminate unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
exarkun committed Jan 9, 2019
1 parent d18e2fb commit dee5ca6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Servant/PY/Treq.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dee5ca6

Please # to comment.