Skip to content

Commit 153ae86

Browse files
author
Josh Owen
committed
avoid double encoding
1 parent 834b5c7 commit 153ae86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robots/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def clean_pattern(pattern):
101101

102102
for token in parsed:
103103
if token[0] == LITERAL:
104-
character = quote(unichr(token[1]).encode('utf8'))
104+
character = quote(token[1])
105105
literals.append(character)
106106

107107
elif token[0] == AT:

0 commit comments

Comments
 (0)