Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use older-style formatting in SymPyDeprecationWarning.

  • Loading branch information...
commit 9a5d3a56dd2e38a971d4aa472b908714818cecdd 1 parent a5d5536
Sergiu Ivanov authored March 08, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  sympy/utilities/exceptions.py
8  sympy/utilities/exceptions.py
@@ -64,12 +64,12 @@ def __init__(self, value=None, feature=None, last_supported_version=None,
64 64
         self.fullMessage=""
65 65
 
66 66
         if feature:
67  
-            self.fullMessage = "The feature {0} is deprecated.".format(feature)
  67
+            self.fullMessage = "The feature %s is deprecated." % feature
68 68
 
69 69
             if last_supported_version:
70  
-                self.fullMessage += "  It will be last supported in SymPy version {0}.".format(last_supported_version)
  70
+                self.fullMessage += "  It will be last supported in SymPy version %s." % last_supported_version
71 71
             if useinstead:
72  
-                self.fullMessage += "  Use {0} instead.".format(useinstead)
  72
+                self.fullMessage += "  Use %s instead." % useinstead
73 73
 
74 74
         if self.fullMessage:
75 75
             # We should also handle a non-string "value".
@@ -77,7 +77,7 @@ def __init__(self, value=None, feature=None, last_supported_version=None,
77 77
                 if value:
78 78
                     self.fullMessage += "  " + value
79 79
             elif value:
80  
-                self.fullMessage += "  ({0})".format(repr(value))
  80
+                self.fullMessage += "  (%s)" % repr(value)
81 81
         else:
82 82
             # No extended arguments; replicate the original behaviour.
83 83
             self.fullMessage = repr(value)

0 notes on commit 9a5d3a5

Please sign in to comment.
Something went wrong with that request. Please try again.