Skip to content

Commit

Permalink
refactor(util.uri): refactor dict comprehension (#1783)
Browse files Browse the repository at this point in the history
* Initial fixes and formatting using autopep8

* revert fixes and updated master with upstream branch

* Add .deepsource.toml

* Use literal syntax instead of function calls to create data structure

* Remove unnecessary generator

* Replace ternary syntax with if expression

* revert fix - Use literal syntax instead of function calls to create data structure, Replace ternary syntax with if expression

* Delete .deepsource.toml

* Update .gitignore

* fixed pep8 voilation occuring in ci check
  • Loading branch information
withshubh authored Dec 19, 2020
1 parent c7ab8da commit ba78a52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions falcon/util/uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
_HEX_DIGITS = '0123456789ABCDEFabcdef'

# This map construction is based on urllib's implementation
_HEX_TO_BYTE = dict(((a + b).encode(), bytes([int(a + b, 16)]))
for a in _HEX_DIGITS
for b in _HEX_DIGITS)
_HEX_TO_BYTE = {(a + b).encode(): bytes([int(a + b, 16)])
for a in _HEX_DIGITS
for b in _HEX_DIGITS}

_PYPY = platform.python_implementation() == 'PyPy'

Expand Down

0 comments on commit ba78a52

Please sign in to comment.