[Python-checkins] cpython (3.5): Use raw string for regexp
guido.van.rossum
python-checkins at python.org
Sat Sep 10 00:39:50 EDT 2016
https://hg.python.org/cpython/rev/427ec71e8b0e
changeset: 103548:427ec71e8b0e
branch: 3.5
parent: 103529:3ffff303df95
user: Guido van Rossum <guido at python.org>
date: Fri Sep 09 21:39:10 2016 -0700
summary:
Use raw string for regexp
files:
Lib/test/test_asyncio/test_streams.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py
--- a/Lib/test/test_asyncio/test_streams.py
+++ b/Lib/test/test_asyncio/test_streams.py
@@ -831,7 +831,7 @@
stream._waiter = asyncio.Future(loop=self.loop)
self.assertRegex(
repr(stream),
- "<StreamReader w=<Future pending[\S ]*>>")
+ r"<StreamReader w=<Future pending[\S ]*>>")
stream._waiter.set_result(None)
self.loop.run_until_complete(stream._waiter)
stream._waiter = None
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list