diff options
author | Steve Dower <steve.dower@microsoft.com> | 2017-02-04 14:55:16 -0800 |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2017-02-04 14:55:16 -0800 |
commit | b53654b6dbfce8318a7d4d1cdaddca7a7fec194b (patch) | |
tree | 204df61b2fb23424603db767732db35a687529c6 /Tools/pybench | |
parent | e1ac7d87afad9c07ec25e5705bb135b71347b581 (diff) | |
parent | 2296b978597ce62ec2185b78a43811610af2c0ea (diff) | |
download | cpython-b53654b6dbfce8318a7d4d1cdaddca7a7fec194b.tar.gz |
Issue #29416: Prevent infinite loop in pathlib.Path.mkdir
Diffstat (limited to 'Tools/pybench')
-rw-r--r-- | Tools/pybench/CommandLine.py | 4 | ||||
-rw-r--r-- | Tools/pybench/With.py | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Tools/pybench/CommandLine.py b/Tools/pybench/CommandLine.py index 073cca0507..54a8ba7326 100644 --- a/Tools/pybench/CommandLine.py +++ b/Tools/pybench/CommandLine.py @@ -99,8 +99,8 @@ def option_dict(options): # Alias getpasswd = invisible_input -_integerRE = re.compile('\s*(-?\d+)\s*$') -_integerRangeRE = re.compile('\s*(-?\d+)\s*-\s*(-?\d+)\s*$') +_integerRE = re.compile(r'\s*(-?\d+)\s*$') +_integerRangeRE = re.compile(r'\s*(-?\d+)\s*-\s*(-?\d+)\s*$') def srange(s, diff --git a/Tools/pybench/With.py b/Tools/pybench/With.py index 5f59e8c05b..30cd3c2c8a 100644 --- a/Tools/pybench/With.py +++ b/Tools/pybench/With.py @@ -1,4 +1,3 @@ -from __future__ import with_statement from pybench import Test class WithFinally(Test): |