def executescript(self, script): """Same as :meth:`python:sqlite3.Connection.executescript`.""" if self.debug: self.debug.write("Executing script with {} chars: {}".format( len(script), clipped_repr(script, 100), )) self.con.executescript(script)
def executescript(self, script): if self.debug: self.debug.write("Executing script with {} chars: {}".format( len(script), clipped_repr(script, 100), )) self.con.executescript(script)
def test_clipped_repr(text, numchars, result): assert clipped_repr(text, numchars) == result