mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +03:00
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:
parent
a51160317c
commit
e335d6d223
|
@ -334,4 +334,3 @@ Psycopg raises *ImportError: cannot import name tz* on import in mod_wsgi / ASP,
|
||||||
.. _egg: http://peak.telecommunity.com/DevCenter/PythonEggs
|
.. _egg: http://peak.telecommunity.com/DevCenter/PythonEggs
|
||||||
.. __: http://stackoverflow.com/questions/2192323/what-is-the-python-egg-cache-python-egg-cache
|
.. __: http://stackoverflow.com/questions/2192323/what-is-the-python-egg-cache-python-egg-cache
|
||||||
.. __: http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPythonEggs
|
.. __: http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPythonEggs
|
||||||
|
|
||||||
|
|
|
@ -65,4 +65,3 @@ Psycopg 2 is both Unicode and Python 3 friendly.
|
||||||
**To Do items in the documentation**
|
**To Do items in the documentation**
|
||||||
|
|
||||||
.. todolist::
|
.. todolist::
|
||||||
|
|
||||||
|
|
|
@ -61,4 +61,3 @@ be used.
|
||||||
|
|
||||||
This pool class is mostly designed to interact with Zope and probably
|
This pool class is mostly designed to interact with Zope and probably
|
||||||
not useful in generic applications.
|
not useful in generic applications.
|
||||||
|
|
||||||
|
|
|
@ -49,4 +49,3 @@ def setup(app):
|
||||||
text=(visit_extension_node, depart_extension_node))
|
text=(visit_extension_node, depart_extension_node))
|
||||||
|
|
||||||
app.add_directive('extension', Extension)
|
app.add_directive('extension', Extension)
|
||||||
|
|
||||||
|
|
|
@ -18,4 +18,3 @@ def sql_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
roles.register_local_role('sql', sql_role)
|
roles.register_local_role('sql', sql_role)
|
||||||
|
|
||||||
|
|
|
@ -56,4 +56,3 @@ def setup(app):
|
||||||
app.add_config_value('ticket_remap_offset', None, 'env')
|
app.add_config_value('ticket_remap_offset', None, 'env')
|
||||||
app.add_role('ticket', ticket_role)
|
app.add_role('ticket', ticket_role)
|
||||||
app.add_role('tickets', ticket_role)
|
app.add_role('tickets', ticket_role)
|
||||||
|
|
||||||
|
|
|
@ -60,4 +60,3 @@ def emit(basename, txt_dir):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
||||||
|
|
|
@ -13,4 +13,3 @@ cursors.
|
||||||
.. autoclass:: psycopg2.tz.FixedOffsetTimezone
|
.. autoclass:: psycopg2.tz.FixedOffsetTimezone
|
||||||
|
|
||||||
.. autoclass:: psycopg2.tz.LocalTimezone
|
.. autoclass:: psycopg2.tz.LocalTimezone
|
||||||
|
|
||||||
|
|
|
@ -1017,4 +1017,3 @@ For further details see the documentation for the above methods.
|
||||||
|
|
||||||
.. __: http://www.opengroup.org/bookstore/catalog/c193.htm
|
.. __: http://www.opengroup.org/bookstore/catalog/c193.htm
|
||||||
.. __: http://jdbc.postgresql.org/
|
.. __: http://jdbc.postgresql.org/
|
||||||
|
|
||||||
|
|
|
@ -172,6 +172,3 @@ conn.rollback()
|
||||||
curs.execute("DROP TABLE test_copy")
|
curs.execute("DROP TABLE test_copy")
|
||||||
os.unlink('copy_from.txt')
|
os.unlink('copy_from.txt')
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -63,5 +63,3 @@ print "Some text from cursor with typecaster:", curs.fetchone()[0]
|
||||||
curs = conn.cursor()
|
curs = conn.cursor()
|
||||||
curs.execute("SELECT 'some text.'::text AS foo")
|
curs.execute("SELECT 'some text.'::text AS foo")
|
||||||
print "Some text from connection with typecaster again:", curs.fetchone()[0]
|
print "Some text from connection with typecaster again:", curs.fetchone()[0]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -295,4 +295,3 @@ Bytes_Format(PyObject *format, PyObject *args)
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -295,5 +295,3 @@ PyTypeObject notifyType = {
|
||||||
0, /*tp_alloc*/
|
0, /*tp_alloc*/
|
||||||
notify_new, /*tp_new*/
|
notify_new, /*tp_new*/
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -312,4 +312,3 @@ psycopg_parse_escape(const char *bufin, Py_ssize_t sizein, Py_ssize_t *sizeout)
|
||||||
exit:
|
exit:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,4 +69,3 @@ static typecastObject_initlist typecast_builtins[] = {
|
||||||
{"MACADDRARRAY", typecast_MACADDRARRAY_types, typecast_STRINGARRAY_cast, "STRING"},
|
{"MACADDRARRAY", typecast_MACADDRARRAY_types, typecast_STRINGARRAY_cast, "STRING"},
|
||||||
{NULL, NULL, NULL, NULL}
|
{NULL, NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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_DATETIME_cast typecast_MXDATE_cast
|
||||||
#define typecast_DATETIMETZ_cast typecast_MXDATE_cast
|
#define typecast_DATETIMETZ_cast typecast_MXDATE_cast
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -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
|
# Visual Studio 2008
|
||||||
Project("{2857B73E-F847-4B02-9238-064979017E93}") = "psycopg2", "psycopg2.cproj", "{CFD80D18-3EE5-49ED-992A-E6D433BC7641}"
|
Project("{2857B73E-F847-4B02-9238-064979017E93}") = "psycopg2", "psycopg2.cproj", "{CFD80D18-3EE5-49ED-992A-E6D433BC7641}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|
|
@ -28,4 +28,3 @@ curs = conn.cursor()
|
||||||
|
|
||||||
curs.execute("SELECT %s", ([1,2,None],))
|
curs.execute("SELECT %s", ([1,2,None],))
|
||||||
print curs.fetchone()
|
print curs.fetchone()
|
||||||
|
|
||||||
|
|
|
@ -33,4 +33,3 @@ print curs.fetchall()
|
||||||
|
|
||||||
curs.execute("SELECT now() AS bar")
|
curs.execute("SELECT now() AS bar")
|
||||||
sleep(curs)
|
sleep(curs)
|
||||||
|
|
||||||
|
|
|
@ -16,4 +16,3 @@ sql()
|
||||||
import gtk
|
import gtk
|
||||||
print "AFTER"
|
print "AFTER"
|
||||||
sql()
|
sql()
|
||||||
|
|
||||||
|
|
|
@ -11,4 +11,3 @@ for x in curs.fetchall():
|
||||||
curs.execute("SELECT '2005-2-12'::date AS foo, 'boo!' as bar")
|
curs.execute("SELECT '2005-2-12'::date AS foo, 'boo!' as bar")
|
||||||
for x in curs:
|
for x in curs:
|
||||||
print type(x), x[0], x[1], x['foo'], x['bar']
|
print type(x), x[0], x[1], x['foo'], x['bar']
|
||||||
|
|
||||||
|
|
|
@ -80,4 +80,3 @@ except IndexError:
|
||||||
|
|
||||||
# Run leak() or noleak(), whichever was indicated on the command line
|
# Run leak() or noleak(), whichever was indicated on the command line
|
||||||
run_function()
|
run_function()
|
||||||
|
|
||||||
|
|
|
@ -41,5 +41,3 @@ cursor.execute("""
|
||||||
|
|
||||||
for row in cursor:
|
for row in cursor:
|
||||||
print row
|
print row
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,4 +10,3 @@ class B(object):
|
||||||
return 'It is True'
|
return 'It is True'
|
||||||
else:
|
else:
|
||||||
return 'It is False'
|
return 'It is False'
|
||||||
|
|
||||||
|
|
|
@ -47,4 +47,3 @@ def sleep(curs):
|
||||||
|
|
||||||
#curs.execute("SELECT now() AS bar");
|
#curs.execute("SELECT now() AS bar");
|
||||||
#sleep(curs)
|
#sleep(curs)
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,3 @@ curs = conn.cursor()
|
||||||
curs.execute("SELECT true AS foo WHERE 'a' in %s", (("aa", "bb"),))
|
curs.execute("SELECT true AS foo WHERE 'a' in %s", (("aa", "bb"),))
|
||||||
print curs.fetchall()
|
print curs.fetchall()
|
||||||
print curs.query
|
print curs.query
|
||||||
|
|
||||||
|
|
|
@ -40,4 +40,3 @@ dbconn.commit()
|
||||||
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
dbconn.close()
|
dbconn.close()
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,3 @@ c = o.cursor()
|
||||||
c.execute("SELECT 1.23::float AS foo")
|
c.execute("SELECT 1.23::float AS foo")
|
||||||
x = c.fetchone()[0]
|
x = c.fetchone()[0]
|
||||||
print x, type(x)
|
print x, type(x)
|
||||||
|
|
||||||
|
|
|
@ -71,5 +71,3 @@ done = 1
|
||||||
|
|
||||||
cur.close()
|
cur.close()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -37,5 +37,3 @@ echo -n generating typecast_builtins.c ...
|
||||||
awk '/#define .+OID/ {print $2 " " $3}' "$PGTYPE" | \
|
awk '/#define .+OID/ {print $2 " " $3}' "$PGTYPE" | \
|
||||||
python $SCRIPTSDIR/buildtypes.py >$SRCDIR/typecast_builtins.c
|
python $SCRIPTSDIR/buildtypes.py >$SRCDIR/typecast_builtins.c
|
||||||
echo " done"
|
echo " done"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -869,4 +869,3 @@ class DatabaseAPI20Test(unittest.TestCase):
|
||||||
self.failUnless(hasattr(self.driver,'ROWID'),
|
self.failUnless(hasattr(self.driver,'ROWID'),
|
||||||
'module.ROWID must be defined.'
|
'module.ROWID must be defined.'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user