Commit 069b95e5 authored by Julien Muchembled's avatar Julien Muchembled

mysql: small optimization by making 'escape' a property

parent 3e91d269
......@@ -131,9 +131,10 @@ class MySQLDatabaseManager(DatabaseManager):
raise DatabaseFailure('MySQL error %d: %s' % (m[0], m[1]))
return r
def escape(self, s):
def escape(self):
"""Escape special characters in a string."""
return self.conn.escape_string(s)
return self.conn.escape_string
def erase(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment