diff options
| author | Petri Lehtinen <petri@digip.org> | 2012-02-15 20:22:34 (GMT) |
|---|---|---|
| committer | Petri Lehtinen <petri@digip.org> | 2012-02-15 20:22:34 (GMT) |
| commit | be2cf338e9baef1f2479a33a8c7b5552bf9bd86f (patch) | |
| tree | ad5bfa3bbfe0db0e65b25eb5ef805fbf0e0b226b /Doc/includes/sqlite3/converter_point.py | |
| parent | 482ee66cb7075b917a0a93051536ed0c10586447 (diff) | |
| parent | 1ca93954e17e4f6f1230306997badbda3e5c68bc (diff) | |
| download | cpython-be2cf338e9baef1f2479a33a8c7b5552bf9bd86f.zip cpython-be2cf338e9baef1f2479a33a8c7b5552bf9bd86f.tar.gz cpython-be2cf338e9baef1f2479a33a8c7b5552bf9bd86f.tar.bz2 | |
Merge branch '3.2'
Issue #13491.
Diffstat (limited to 'Doc/includes/sqlite3/converter_point.py')
| -rw-r--r-- | Doc/includes/sqlite3/converter_point.py | 4 |
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 |
