Skip to content

Commit 47868c8

Browse files
committed
flake8 cleanups. whie space changes.
1 parent 8a2928c commit 47868c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

roundup/cgi/accept_language.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
# regexp for languange-range search
3232
nqlre = "([A-Za-z]+[-[A-Za-z]+]*)$"
3333
# regexp for languange-range search with quality value
34-
qlre = r"([A-Za-z]+[-[A-Za-z]+]*);q=([\d\.]+)"
34+
qlre = r"([A-Za-z]+[-[A-Za-z]+]*);q=([\d\.]+)"
3535
# both
36-
lre = re.compile(nqlre + "|" + qlre)
36+
lre = re.compile(nqlre + "|" + qlre)
3737

3838
whitespace = ' \t\n\r\v\f'
3939
try:
@@ -43,6 +43,7 @@
4343
# Python 2.
4444
remove_ws = (None, whitespace)
4545

46+
4647
def parse(language_header):
4748
"""parse(string_with_accept_header_content) -> languages list"""
4849

@@ -71,7 +72,7 @@ def parse(language_header):
7172

7273
# get the languages ordered by quality
7374
# and replace - by _
74-
return [x[1].replace('-','_') for x in pq]
75+
return [x[1].replace('-', '_') for x in pq]
7576

7677
if __name__ == "__main__":
7778
import doctest

0 commit comments

Comments
 (0)