summaryrefslogtreecommitdiff
path: root/Tools/pybench
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/pybench')
-rw-r--r--Tools/pybench/CommandLine.py4
-rw-r--r--Tools/pybench/With.py1
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):