From: Daniele Varrazzo Date: Fri, 3 Jul 2020 09:12:37 +0000 (+1200) Subject: Dropped unused function X-Git-Tag: 3.0.dev0~471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea8fb75c4b2ff6ac7ef287403bc365bad31c70c;p=thirdparty%2Fpsycopg.git Dropped unused function --- diff --git a/tests/test_copy.py b/tests/test_copy.py index 993a1bb69..a2265ea8a 100644 --- a/tests/test_copy.py +++ b/tests/test_copy.py @@ -198,20 +198,3 @@ from copy_in group by 1, 2, 3 def ensure_table(cur, tabledef, name="copy_in"): cur.execute(f"drop table if exists {name}") cur.execute(f"create table {name} ({tabledef})") - - -def as_bytes(records): - out = [] - for rin in records: - rout = [] - for v in rin: - if v is None or isinstance(v, bytes): - rout.append(v) - continue - if not isinstance(v, str): - v = str(v) - if isinstance(v, str): - v = v.encode("utf8") - rout.append(v) - out.append(tuple(rout)) - return out