summaryrefslogtreecommitdiff
path: root/examples/binary.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-12-01 21:37:49 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2017-12-01 21:42:14 -0800
commite335d6d2234a7bb1d83741f851dba5dbbabd6e3c (patch)
treebe5545f9f2c20bc41b500d4aac462fd40c0ea8d8 /examples/binary.py
parenta51160317c680662c52e4a1a6b4d11beae37f205 (diff)
downloadpsycopg2-e335d6d2234a7bb1d83741f851dba5dbbabd6e3c.tar.gz
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.
Diffstat (limited to 'examples/binary.py')
-rw-r--r--examples/binary.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/binary.py b/examples/binary.py
index 3ba1ff8..665d962 100644
--- a/examples/binary.py
+++ b/examples/binary.py
@@ -62,7 +62,7 @@ for row in curs.fetchall():
open(new_name, 'wb').write(row[2])
print "done"
print " python type of image data is", type(row[2])
-
+
# extract exactly the same data but using a binary cursor
print "Extracting the images using a binary cursor:"
@@ -78,7 +78,7 @@ for row in curs.fetchall():
open(new_name, 'wb').write(row[0])
print "done"
print " python type of image data is", type(row[0])
-
+
# this rollback is required because we can't drop a table with a binary cursor
# declared and still open
conn.rollback()