mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #13491: Fix many errors in sqlite3 documentation
Initial patch by Johannes Vogel.
This commit is contained in:
parent
2640b52237
commit
1ca93954e1
10 changed files with 29 additions and 52 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue