Skip to content

Commit

Permalink
Merge pull request #299 from binance/v3.6.0-update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
aisling-2 committed Mar 7, 2024
2 parents c094234 + 9bfdc14 commit 4ae8516
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
flake8 . --statistics
- name: Test with pytest
run: |
pytest tests/
python -m pytest tests/
- name: Test document build
run: |
python -m pip install sphinx sphinx-rtd-theme
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ ws_client = WebsocketClient(stream_url='wss://testnet.binance.vision')
# In case packages are not installed yet
pip install -r requirements/requirements-test.txt

pytest
python -m pytest tests/
```

## Limitation
Expand Down
8 changes: 5 additions & 3 deletions binance/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def parse_proxies(proxies: dict):
return {
"http_proxy_host": parsed.hostname,
"http_proxy_port": parsed.port,
"http_proxy_auth": (parsed.username, parsed.password)
if parsed.username and parsed.password
else None,
"http_proxy_auth": (
(parsed.username, parsed.password)
if parsed.username and parsed.password
else None
),
}

0 comments on commit 4ae8516

Please sign in to comment.