Show More
@@ -265,7 +265,7 b" heredoclimitpat = br'\\s*<<\\s*(?P<lquote>" | |||
|
265 | 265 | class fileheredocmatcher(embeddedmatcher): |
|
266 | 266 | """Detect "cat > FILE << LIMIT" style embedded code |
|
267 | 267 | |
|
268 | >>> matcher = fileheredocmatcher(b'heredoc .py file', br'[^<]+\.py') | |
|
268 | >>> matcher = fileheredocmatcher(b'heredoc .py file', br'[^<]+\\.py') | |
|
269 | 269 | >>> b2s(matcher.startsat(b' $ cat > file.py << EOF\\n')) |
|
270 | 270 | ('file.py', ' > EOF\\n') |
|
271 | 271 | >>> b2s(matcher.startsat(b' $ cat >>file.py <<EOF\\n')) |
General Comments 0
You need to be logged in to leave comments.
Login now