]> granicus.if.org Git - python/commitdiff
#16303: remove extra quotes from exception and add (). Initial patch by Vladimir...
authorEzio Melotti <ezio.melotti@gmail.com>
Wed, 24 Oct 2012 20:43:02 +0000 (23:43 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Wed, 24 Oct 2012 20:43:02 +0000 (23:43 +0300)
Lib/pstats.py

index 9a22965b7a104ddb76c3cac63b2b5f37cebaff05..4338994e5d4466607d6ca3f7917cddc3ef88d102 100644 (file)
@@ -120,8 +120,8 @@ class Stats:
             self.stats = arg.stats
             arg.stats = {}
         if not self.stats:
-            raise TypeError,  "Cannot create or construct a %r object from '%r''" % (
-                              self.__class__, arg)
+            raise TypeError("Cannot create or construct a %r object from %r"
+                            % (self.__class__, arg))
         return
 
     def get_top_level_stats(self):