Commit graph

28 commits

Author SHA1 Message Date
Tomas Kopecek
f2a57c8485 always set utf8 pg client encoding
Related: https://pagure.io/koji/issue/2104
2020-04-01 16:19:03 +02:00
Yuming Zhu
c5db34a8e1 flake8: apply E501 with max-line-length=99 2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7 flake8: apply all rest E7 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
0f727a2ab4 flake8: apply E3 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
97cfaa4fcf flake8: follow E265 rule 2020-03-03 21:35:08 +08:00
Yu Ming Zhu
4d29a87e9b sort imports in koji 2019-12-12 11:00:57 +00:00
Ken Dreyer
68bcc06427 rm old test code
Some files in the tree had bits of code that you could run if you
executed the files directly as scripts. Now that we have unit tests and
the "fakehub" tool, we do not need this code.
2019-11-18 10:45:57 +01:00
Tomas Kopecek
afa636264a fix import 2019-02-05 15:49:54 +01:00
Tomas Kopecek
7f6b717eb6 python-modernize -f libmodernize.fixes.fix_import 2018-07-11 17:37:39 -04:00
Tomas Kopecek
70224c42c1 remove obsoleted StandardError 2017-03-17 11:35:53 -04:00
Tomas Kopecek
e355527649 remove deprecated "filer" calls 2017-03-17 11:35:53 -04:00
Mike McLean
06818122ab stop mangling psycopg2.extensions 2017-03-14 09:51:28 -04:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Tomas Kopecek
c143d0b88f print statement -> print function 2017-02-28 10:55:56 -05:00
Mike Bonnet
f61b223723 convert from pygresql to psycopg2 2017-01-17 14:36:14 -05:00
Mike McLean
a1c8808544 ImportErrors are uncovered 2016-10-25 17:16:12 -04:00
Mohan Boddu
dd82e9cea2 Remove all bad-whitespaces
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2016-08-29 14:26:32 -04:00
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike McLean
61ed1260d3 log failed queries 2014-10-22 15:00:44 -04:00
Mike McLean
5dac6536a4 fix for _quoteparams issue 2012-03-09 16:36:53 -05:00
Mike McLean
589a8ee481 remove extraneous newlines in logs 2010-04-16 12:42:18 -04:00
Mike McLean
04042ce4de log db connection errors 2010-03-12 17:55:04 -05:00
Mike McLean
487ccdb2e3 clean up hub logging a bit 2010-03-12 15:34:02 -05:00
Mike McLean
ca48ded98d avoid 'no transaction in progress' warnings (Ticket #162)
https://fedorahosted.org/koji/ticket/162
2009-11-24 15:58:13 -05:00
Mike McLean
5088019eac avoid open transactions between calls 2009-11-12 16:10:30 -05:00
Mike McLean
58b7313d0a don't recycle broken db connections 2008-02-22 11:28:37 -05:00
Jesse Keating
5d7e66a17e Initial code drop 2007-02-14 11:25:01 -05:00