ovs.db.types: Remove write-only variable from constraintsToEnglish().
authorBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 00:09:27 +0000 (17:09 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 18:07:23 +0000 (11:07 -0700)
Found by pychecker.

python/ovs/db/types.py

index 00b9ab40df350cc2b81874d8628071c9bb1a8022..4e8f8f143cb7eea476a1f298704e7e536be761a2 100644 (file)
@@ -505,8 +505,6 @@ class Type(object):
                 return "set of %s%s" % (quantity, plural)
 
     def constraintsToEnglish(self, escapeLiteral=returnUnchanged):
-        s = ""
-
         constraints = []
         keyConstraints = self.key.constraintsToEnglish(escapeLiteral)
         if keyConstraints: