def escape(self, s): ''' ???, ???? ? SQL ????? ??? ????? ? ??? ESCAPE?? ????. ''' if s is None: return None return pymysql.escape_string(s)