Browse Source

Replace backticks with repr()

Mike Naberezny 11 years ago
parent
commit
3be75511c2
2 changed files with 3 additions and 3 deletions
  1. 2 2
      supervisor/datatypes.py
  2. 1 1
      supervisor/tests/test_process.py

+ 2 - 2
supervisor/datatypes.py

@@ -128,10 +128,10 @@ class RangeCheckedConversion:
         v = self._conversion(value)
         if self._min is not None and v < self._min:
             raise ValueError("%s is below lower bound (%s)"
-                             % (`v`, `self._min`))
+                             % (repr(v), repr(self._min)))
         if self._max is not None and v > self._max:
             raise ValueError("%s is above upper bound (%s)"
-                             % (`v`, `self._max`))
+                             % (repr(v), repr(self._max)))
         return v
 
 port_number = RangeCheckedConversion(integer, min=1, max=0xffff).__call__

+ 1 - 1
supervisor/tests/test_process.py

@@ -617,7 +617,7 @@ class SubprocessTests(unittest.TestCase):
                         raise
                         # try again ;-)
             time.sleep(0.1) # arbitrary, race condition possible
-            self.assertTrue(data.find(`origpid`) != -1 )
+            self.assertTrue(data.find(repr(origpid)) != -1 )
             msg = instance.kill(signal.SIGTERM)
             time.sleep(0.1) # arbitrary, race condition possible
             self.assertEqual(msg, None)