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.
This commit is contained in:
Jon Dufresne 2017-12-01 21:37:49 -08:00
parent a51160317c
commit e335d6d223
52 changed files with 286 additions and 324 deletions

View File

@ -334,4 +334,3 @@ Psycopg raises *ImportError: cannot import name tz* on import in mod_wsgi / ASP,
.. _egg: http://peak.telecommunity.com/DevCenter/PythonEggs
.. __: http://stackoverflow.com/questions/2192323/what-is-the-python-egg-cache-python-egg-cache
.. __: http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPythonEggs

View File

@ -65,4 +65,3 @@ Psycopg 2 is both Unicode and Python 3 friendly.
**To Do items in the documentation**
.. todolist::

View File

@ -61,4 +61,3 @@ be used.
This pool class is mostly designed to interact with Zope and probably
not useful in generic applications.

View File

@ -49,4 +49,3 @@ def setup(app):
text=(visit_extension_node, depart_extension_node))
app.add_directive('extension', Extension)

View File

@ -18,4 +18,3 @@ def sql_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
def setup(app):
roles.register_local_role('sql', sql_role)

View File

@ -56,4 +56,3 @@ def setup(app):
app.add_config_value('ticket_remap_offset', None, 'env')
app.add_role('ticket', ticket_role)
app.add_role('tickets', ticket_role)

View File

@ -60,4 +60,3 @@ def emit(basename, txt_dir):
if __name__ == '__main__':
sys.exit(main())

View File

@ -13,4 +13,3 @@ cursors.
.. autoclass:: psycopg2.tz.FixedOffsetTimezone
.. autoclass:: psycopg2.tz.LocalTimezone

View File

@ -1017,4 +1017,3 @@ For further details see the documentation for the above methods.
.. __: http://www.opengroup.org/bookstore/catalog/c193.htm
.. __: http://jdbc.postgresql.org/

View File

@ -172,6 +172,3 @@ conn.rollback()
curs.execute("DROP TABLE test_copy")
os.unlink('copy_from.txt')
conn.commit()

View File

@ -63,5 +63,3 @@ print "Some text from cursor with typecaster:", curs.fetchone()[0]
curs = conn.cursor()
curs.execute("SELECT 'some text.'::text AS foo")
print "Some text from connection with typecaster again:", curs.fetchone()[0]

View File

@ -295,4 +295,3 @@ Bytes_Format(PyObject *format, PyObject *args)
}
return NULL;
}

View File

@ -295,5 +295,3 @@ PyTypeObject notifyType = {
0, /*tp_alloc*/
notify_new, /*tp_new*/
};

View File

@ -312,4 +312,3 @@ psycopg_parse_escape(const char *bufin, Py_ssize_t sizein, Py_ssize_t *sizeout)
exit:
return ret;
}

View File

@ -69,4 +69,3 @@ static typecastObject_initlist typecast_builtins[] = {
{"MACADDRARRAY", typecast_MACADDRARRAY_types, typecast_STRINGARRAY_cast, "STRING"},
{NULL, NULL, NULL, NULL}
};

View File

@ -250,4 +250,3 @@ typecast_MXINTERVAL_cast(const char *str, Py_ssize_t len, PyObject *curs)
#define typecast_DATETIME_cast typecast_MXDATE_cast
#define typecast_DATETIMETZ_cast typecast_MXDATE_cast
#endif

View File

@ -1,5 +1,4 @@

Microsoft Visual Studio Solution File, Format Version 10.00
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{2857B73E-F847-4B02-9238-064979017E93}") = "psycopg2", "psycopg2.cproj", "{CFD80D18-3EE5-49ED-992A-E6D433BC7641}"
EndProject

View File

@ -28,4 +28,3 @@ curs = conn.cursor()
curs.execute("SELECT %s", ([1,2,None],))
print curs.fetchone()

View File

@ -33,4 +33,3 @@ print curs.fetchall()
curs.execute("SELECT now() AS bar")
sleep(curs)

View File

@ -16,4 +16,3 @@ sql()
import gtk
print "AFTER"
sql()

View File

@ -11,4 +11,3 @@ for x in curs.fetchall():
curs.execute("SELECT '2005-2-12'::date AS foo, 'boo!' as bar")
for x in curs:
print type(x), x[0], x[1], x['foo'], x['bar']

View File

@ -80,4 +80,3 @@ except IndexError:
# Run leak() or noleak(), whichever was indicated on the command line
run_function()

View File

@ -41,5 +41,3 @@ cursor.execute("""
for row in cursor:
print row

View File

@ -10,4 +10,3 @@ class B(object):
return 'It is True'
else:
return 'It is False'

View File

@ -47,4 +47,3 @@ def sleep(curs):
#curs.execute("SELECT now() AS bar");
#sleep(curs)

View File

@ -6,4 +6,3 @@ curs = conn.cursor()
curs.execute("SELECT true AS foo WHERE 'a' in %s", (("aa", "bb"),))
print curs.fetchall()
print curs.query

View File

@ -40,4 +40,3 @@ dbconn.commit()
cursor.close()
dbconn.close()

View File

@ -6,4 +6,3 @@ c = o.cursor()
c.execute("SELECT 1.23::float AS foo")
x = c.fetchone()[0]
print x, type(x)

View File

@ -71,5 +71,3 @@ done = 1
cur.close()
conn.close()

View File

@ -37,5 +37,3 @@ echo -n generating typecast_builtins.c ...
awk '/#define .+OID/ {print $2 " " $3}' "$PGTYPE" | \
python $SCRIPTSDIR/buildtypes.py >$SRCDIR/typecast_builtins.c
echo " done"

View File

@ -869,4 +869,3 @@ class DatabaseAPI20Test(unittest.TestCase):
self.failUnless(hasattr(self.driver,'ROWID'),
'module.ROWID must be defined.'
)