Skip to content

Commit 837c074

Browse files
author
Josh Owen
committed
encode as utf8
1 parent 153ae86 commit 837c074

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(token[1])
104+
character = quote(token[1].encode('utf8'))
105105
literals.append(character)
106106

107107
elif token[0] == AT:

0 commit comments

Comments
 (0)