diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-07 01:20:21 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-07 01:20:21 (GMT) |
commit | 45d569b8232d19b0f6bd1385e8fb624f310d230e (patch) | |
tree | 610eda1d0c574f81bed24f2ceceecb0abf2ca1e5 /Doc/lib/sqlite3/converter_point.py | |
parent | b942d28bf5b62e1823b91a7b3986e120ec9763bc (diff) | |
download | cpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.zip cpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.tar.gz cpython-45d569b8232d19b0f6bd1385e8fb624f310d230e.tar.bz2 |
Run 2to3 over Doc/lib/sqlite3/.
Diffstat (limited to 'Doc/lib/sqlite3/converter_point.py')
-rw-r--r-- | Doc/lib/sqlite3/converter_point.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/sqlite3/converter_point.py b/Doc/lib/sqlite3/converter_point.py index e220e9b..d0707ab 100644 --- a/Doc/lib/sqlite3/converter_point.py +++ b/Doc/lib/sqlite3/converter_point.py @@ -11,7 +11,7 @@ def adapt_point(point): return "%f;%f" % (point.x, point.y) def convert_point(s): - x, y = map(float, s.split(";")) + x, y = list(map(float, s.split(";"))) return Point(x, y) # Register the adapter @@ -30,7 +30,7 @@ cur.execute("create table test(p point)") cur.execute("insert into test(p) values (?)", (p,)) cur.execute("select p from test") -print "with declared types:", cur.fetchone()[0] +print("with declared types:", cur.fetchone()[0]) cur.close() con.close() @@ -42,6 +42,6 @@ cur.execute("create table test(p)") cur.execute("insert into test(p) values (?)", (p,)) cur.execute('select p as "p [point]" from test') -print "with column names:", cur.fetchone()[0] +print("with column names:", cur.fetchone()[0]) cur.close() con.close() |