Issue #13491: Fix many errors in sqlite3 documentation

Initial patch by Johannes Vogel.
This commit is contained in:
Petri Lehtinen 2012-02-15 22:17:21 +02:00
parent 2640b52237
commit 1ca93954e1
10 changed files with 29 additions and 52 deletions

View file

@ -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