~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/includes/sqlite3/text_factory.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
row = cur.fetchone()
32
32
assert type(row[0]) == unicode
33
33
 
34
 
# sqlite3 offers a builtin optimized text_factory that will return bytestring
 
34
# sqlite3 offers a built-in optimized text_factory that will return bytestring
35
35
# objects, if the data is in ASCII only, and otherwise return unicode objects
36
36
con.text_factory = sqlite3.OptimizedUnicode
37
37
cur.execute("select ?", (AUSTRIA,))