Skip to content

Commit 7753803

Browse files
author
Josh Owen
committed
add back quoting
1 parent ebce8d0 commit 7753803

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

robots/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ def clean_pattern(pattern):
101101

102102
for token in parsed:
103103
if token[0] == LITERAL:
104-
character = unichr(token[1]).encode('utf8')
104+
character = quote(unichr(token[1]).encode('utf8'))
105105
literals.append(character)
106-
107106
elif token[0] == AT:
108107
pass
109108

0 commit comments

Comments
 (0)