Commit Graph

45 Commits

Author SHA1 Message Date
Jon Dufresne
9de46e416e Use print() function instead of print statement throughout project
Forward compatible with newer Pythons.
2017-12-10 10:51:07 -08:00
Daniele Varrazzo
2218e73c28 Merge branch 'master' into ws 2017-12-02 14:47:29 +00:00
Jon Dufresne
94bb238b70 Remove sorted() workaround; available on all supported Pythons
Introduced in Python 2.4 and the oldest supported Python is 2.7.

https://docs.python.org/2/library/functions.html#sorted
2017-12-01 22:03:38 -08:00
Jon Dufresne
e335d6d223 Trim trailing whitespace from all files throughout project
Many editors automatically trim whitespace on save. By trimming all
 files in one go, makes future diffs cleaner without extraneous
 whitespace changes.
2017-12-01 21:42:14 -08:00
Hugo
b69457ccdf Update to Exception as e, print() 2017-11-28 16:03:23 +00:00
Chris Mildebrandt
693dedf4da cleanup remaining GPL license text 2014-05-20 09:50:53 -07:00
Erwin de Keijzer
0258e90ef0 Fixed DNS typo in examples 2014-03-24 18:36:33 +01:00
Piotr Kasprzyk
31b6ec63f8 Fix multiple misspellings 2013-04-26 09:59:40 +01:00
Daniele Varrazzo
b721421633 A bunch of typos fixed in the examples by Josh Kupershmidt 2011-12-15 23:58:22 +00:00
Daniele Varrazzo
424bc310a6 Use isolation level symbolic constants in examples 2011-12-15 13:10:36 +00:00
Daniele Varrazzo
d8f4ed1a04 Fixed documentation and example for asynchronous notifications. 2010-04-21 15:09:13 +01:00
Jan Urbański
a57a9976b4 Fix the NOTIFY example to use the correct APIs 2010-04-21 15:09:13 +01:00
Federico Di Gregorio
c1a24f4ca2 NOTIFYs fix and poll status changes
POLL_OK has been changed from 3 to 0 to let the user specify a short loop
just as "if not curs.poll()" instead of having to check for write and read
separately. For an example of this, see examples/notify.py.
2010-04-05 16:52:25 +02:00
Federico Di Gregorio
611606d532 Changes license to LGPL3 + OpenSSL exception on all source files 2010-02-12 23:34:53 +01:00
Federico Di Gregorio
8bb617ee76 Added very large lobject creation to the lobject.py example 2009-10-04 12:50:16 +02:00
James Henstridge
938c456cee Merge changes from psycopg2/trunk via psycopg2.r243. 2008-05-05 10:37:24 +08:00
Federico Di Gregorio
d6e232e2b9 Various fixes, now all examples work. 2007-04-13 14:07:11 +00:00
Federico Di Gregorio
6598a279e2 Added support for per-cursor and per-connection typecasters. 2007-02-22 15:16:54 +00:00
Federico Di Gregorio
f43a52f781 Added RealDictCursor from #143. 2007-01-16 13:45:41 +00:00
Federico Di Gregorio
64bd7ae61c Large objects landing.. 2006-09-02 04:57:50 +00:00
Federico Di Gregorio
b8f3cef62f psycopg is enlarging.. 2006-09-01 16:27:02 +00:00
Daniele Varrazzo
ad76b5ba3c * psycopg/psycopgmodule.c: fixed exceptions refcount.
* fixed lots of doctrings and added Epydoc-generated docs support.
2005-11-26 07:47:48 +00:00
Federico Di Gregorio
996bd07c85 Definitely fixed date and time adapting problems (for mx too!) 2005-11-16 17:30:45 +00:00
Federico Di Gregorio
ed23aeb37c named cursors are working. 2005-10-25 15:35:11 +00:00
Federico Di Gregorio
ef3430d24f Implemented named cursors. 2005-10-22 06:59:31 +00:00
Federico Di Gregorio
49a255059e Releasing 2.0 beta 5. 2005-10-18 14:44:57 +00:00
Federico Di Gregorio
ec31179c9e NOTIFY works again. 2005-10-18 14:07:17 +00:00
Federico Di Gregorio
a0040160d6 Fixed typo in examples. 2005-10-18 01:35:34 +00:00
Federico Di Gregorio
a237209a5e Default tzinfo_factory for cursors. 2005-10-17 16:04:43 +00:00
Federico Di Gregorio
8d3fd21280 mingw fixes. 2005-08-23 10:38:36 +00:00
Federico Di Gregorio
c281a38236 Releasing 2.0b4. 2005-07-17 04:26:27 +00:00
Federico Di Gregorio
9c284f4570 psycopg->psycopg2 switch in the examples. 2005-06-13 06:25:06 +00:00
Federico Di Gregorio
7ead773fc0 TimestampFromTicks fix. 2005-06-02 06:56:21 +00:00
Federico Di Gregorio
35c42310ec DictRow fixes. 2005-05-10 02:29:24 +00:00
Federico Di Gregorio
30b2ba6ebf .executemany() fixes. 2005-03-12 09:19:59 +00:00
Federico Di Gregorio
9316c6af53 Optimizations to type casting (in preparation to array support.) 2005-03-12 06:39:47 +00:00
Federico Di Gregorio
e816aa07b6 Adding missing __conform__ methods before release. 2005-03-02 14:51:24 +00:00
Federico Di Gregorio
3cf4b7ca6f Finished COPY TO/COPY FROM implementation. 2005-03-02 14:07:03 +00:00
Federico Di Gregorio
e5f558a6be COPY FROM works. 2005-03-01 16:41:02 +00:00
Federico Di Gregorio
0d4db2ec55 Case (2) in usercast.py 2005-02-28 16:03:22 +00:00
Federico Di Gregorio
cd672525e1 Adaptation fixes (a lot.) 2005-02-28 15:50:55 +00:00
Federico Di Gregorio
ab02141d48 Temporary hack to make the AsIs adapter work. 2005-02-28 09:15:56 +00:00
Federico Di Gregorio
55744b00cd Much better examples. 2005-02-27 15:25:24 +00:00
Federico Di Gregorio
4b94e54473 Fixed example/myfirstrecipe.py 2005-02-27 15:03:53 +00:00
Federico Di Gregorio
c904d97f69 Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00