diff options
Diffstat (limited to 'Lib/lib2to3/patcomp.py')
-rw-r--r-- | Lib/lib2to3/patcomp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/patcomp.py b/Lib/lib2to3/patcomp.py index 7826f90..076fdc1 100644 --- a/Lib/lib2to3/patcomp.py +++ b/Lib/lib2to3/patcomp.py @@ -133,7 +133,7 @@ class PatternCompiler(object): assert len(nodes) >= 1 node = nodes[0] if node.type == token.STRING: - value = literals.evalString(node.value) + value = str(literals.evalString(node.value)) return pytree.LeafPattern(content=value) elif node.type == token.NAME: value = node.value |