summaryrefslogtreecommitdiffstats
path: root/Doc/includes/sqlite3/converter_point.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-02-15 20:17:21 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-02-15 20:21:01 (GMT)
commit1ca93954e17e4f6f1230306997badbda3e5c68bc (patch)
treef00db8a6e8095c9b5470db3ae6fae16bf6cd64fa /Doc/includes/sqlite3/converter_point.py
parent2640b5223765f7a8e9c13a4a4c82dafa2c7cb59a (diff)
downloadcpython-1ca93954e17e4f6f1230306997badbda3e5c68bc.zip
cpython-1ca93954e17e4f6f1230306997badbda3e5c68bc.tar.gz
cpython-1ca93954e17e4f6f1230306997badbda3e5c68bc.tar.bz2
Issue #13491: Fix many errors in sqlite3 documentation
Initial patch by Johannes Vogel.
Diffstat (limited to 'Doc/includes/sqlite3/converter_point.py')
-rw-r--r--Doc/includes/sqlite3/converter_point.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/includes/sqlite3/converter_point.py b/Doc/includes/sqlite3/converter_point.py
index a8861bc..5df828e 100644
--- a/Doc/includes/sqlite3/converter_point.py
+++ b/Doc/includes/sqlite3/converter_point.py
@@ -8,10 +8,10 @@ class Point:
return "(%f;%f)" % (self.x, self.y)
def adapt_point(point):
- return "%f;%f" % (point.x, point.y)
+ return ("%f;%f" % (point.x, point.y)).encode('ascii')
def convert_point(s):
- x, y = list(map(float, s.split(";")))
+ x, y = list(map(float, s.split(b";")))
return Point(x, y)
# Register the adapter