Skip to content

Commit

Permalink
Cosmetics...
Browse files Browse the repository at this point in the history
  • Loading branch information
gunchev committed Jan 25, 2024
1 parent 883bc4f commit 9de52e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion httpdecho.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def get_message(self):
message["Method"] = self.command
message["Path"] = self.path

server_url = parse.SplitResult("http", f"{self.server.server_name}:{self.server.server_port}", "", "", "")
server_url = parse.SplitResult(scheme="http", netloc=f"{self.server.server_name}:{self.server.server_port}",
path="", query="", fragment="")
request_url = parse.urlsplit(server_url.geturl() + self.path)
for name, value in parse.parse_qs(request_url.query).items():
message.add_header(name, value[0])
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ isolated_build = true
commands =
check-manifest # confirm items checked into vcs are in your sdist
python setup.py check -m -s # confirm required package meta-data in setup.py
# stop the build if there are Python syntax errors or undefined names
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
python -m pytest .

Expand All @@ -35,5 +35,5 @@ deps =

[flake8]
select = E,W,F
max-line-length=127
max-line-length = 127
exclude = .tox, *.egg, build, data, .git, .eggs, __pycache__, test/, docs/, build/, dist/, env.py

0 comments on commit 9de52e3

Please sign in to comment.