Chris Mayo
a15a2833ca
Remove spaces after names in class method definitions
...
And also nested functions.
This is a PEP 8 convention, E211.
2020-05-16 20:19:42 +01:00
Chris Mayo
fc11d08968
Remove spaces after names in class definitions
2020-05-16 20:19:42 +01:00
Chris Mayo
1416a08119
On Python 3 no need to convert os.linesep to a string
2020-05-16 17:02:01 +01:00
Chris Mayo
736c893707
Merge pull request #377 from cjmayo/tidyten3
...
Remove u string prefixes
2020-05-13 19:36:54 +01:00
Chris Mayo
44e81d27dd
Remove inheriting object
...
All Python 3 classes are new-style.
2020-05-08 10:45:31 +01:00
Chris Mayo
b0ea72e8c1
Remove # -*- coding: lines
...
Except for tests that include non-unicode characters:
tests/test_po.py
tests/test_strformat.py
tests/test_url.py
tests/checker/test_error.py
tests/checker/test_news.py
2020-05-08 10:45:31 +01:00
Marius Gedminas
22b0165b72
Make _Logger an abstract base class
...
The __metaclass__ syntax is a Python-2-ism. It was replaced with
class _Logger (object, metaclass=abc.ABCMeta):
in Python 3. And then Python 3.4 introduced abc.ABC which is an empty
class that has ABCMeta as the metaclass, making it simpler to define
abstract base classes.
2020-04-30 23:09:42 +03:00
Chris Mayo
4d3e5abcfa
Remove u string prefixes
2020-04-30 20:11:59 +01:00
Petr Dlouhý
9156576778
Python3: fix logger
2019-09-06 19:41:37 +01:00
Chris Mayo
20e11f1b1f
Remove configuration.DonateUrl
2019-04-21 19:44:18 +01:00
Bastian Kleineidam
43c2e6641b
Logging refactor, interrupt and abort flags added.
2014-04-30 19:59:43 +02:00
Bastian Kleineidam
fc73c6ca6e
Log number of checked unique URLs.
2014-03-14 23:46:17 +01:00
Bastian Kleineidam
6437f08277
Display downloaded bytes.
2014-03-14 21:06:10 +01:00
Bastian Kleineidam
7b34be590b
Introduce check plugins, use Python requests for http/s connections, and some code cleanups and improvements.
2014-03-01 00:12:34 +01:00
Bastian Kleineidam
c806be5c15
Updated copyright
2014-01-08 22:33:04 +01:00
Bastian Kleineidam
e0a2558b2b
Updated copyright.
2013-12-24 07:13:16 +01:00
Bastian Kleineidam
5736987b60
Refactor output loggers.
2013-12-11 18:41:55 +01:00
Alper Kokmen
4b3e78cac0
Fix ISO formatting for modified datetime.
...
This change will make sure that format_modified returns datetime value
in ISO 8601 format. See W3C documentation at
http://www.w3.org/TR/NOTE-datetime .
Since ```modified``` is parsed and then converted to UTC after it's
extracted from HTTP response, it's safe to assume that format_modified
will always format UTC datetime values.
Instead of ```isoformat``` method which omits timezone information for
UTC values, ```strftime``` with a specific format (that ends with Z)
will be used.
2013-09-02 15:38:54 -07:00
Bastian Kleineidam
0c20ef5de4
Strip console characters only from line text.
2012-10-10 12:27:08 +02:00
Bastian Kleineidam
20be0f2519
Strip control chars from logger output.
2012-10-10 10:54:30 +02:00
Bastian Kleineidam
18a200d85f
Fix tests.
2012-09-19 11:05:26 +02:00
Bastian Kleineidam
3a352631ba
Add modified field to loggers.
2012-09-18 12:12:00 +02:00
Bastian Kleineidam
932a07a9cf
Added XML sitemap logger.
2012-09-18 09:16:34 +02:00
Bastian Kleineidam
6e1841cf1f
Print download and cache statistics.
2012-09-17 15:23:25 +02:00
Bastian Kleineidam
e98f15933f
Stop checking of all output loggers have been deactivated.
2012-09-14 22:36:59 +02:00
Bastian Kleineidam
86f1c74006
Close loggers properly on I/O errors.
2012-09-14 22:09:18 +02:00
Bastian Kleineidam
1e13a4f8fc
Add donation url to info blurb.
2012-06-20 00:37:39 +02:00
Bastian Kleineidam
2dfe9d4b4f
Use abstract base class for loggers.
2012-06-19 23:27:26 +02:00
Bastian Kleineidam
3d831c1adb
Updated copyright.
2012-04-11 22:23:43 +02:00
Bastian Kleineidam
21532a70ec
Return with non-zero return value when internal program errors occurred.
2011-12-14 22:54:26 +01:00
Bastian Kleineidam
84f6d56a49
Print level in loggers xml, csv and sql.
2011-04-09 10:51:03 +02:00
Bastian Kleineidam
b9c9dda9b3
Correctly encode CSV output.
2011-04-06 12:54:58 +02:00
Bastian Kleineidam
847d740e37
Move get_stdout_writer() to i18n module and allow the make sys.stdout a function argument.
2011-03-21 13:11:32 +01:00
Bastian Kleineidam
8da37a32ee
Refactor sys.stdout wrapping into a function.
2011-03-11 20:05:27 +01:00
Bastian Kleineidam
2c53507097
Improved logging documentation.
2011-03-09 12:08:03 +01:00
Bastian Kleineidam
c5884b8d87
Add function documentation.
2011-02-14 21:06:34 +01:00
Bastian Kleineidam
48e4bd8bfd
Updated copyright
2011-02-06 09:50:48 +01:00
Bastian Kleineidam
eaf3ca0d89
Set codec error policy on StreamWriter for stdout.
2011-01-09 13:57:14 -06:00
Bastian Kleineidam
06ec8e6389
Reset GUI statistics before each check run.
2010-12-21 00:35:07 +01:00
Bastian Kleineidam
a9b6c10cd5
Fix unicode errors when writing to sys.stdout.
2010-12-20 23:43:37 +01:00
Bastian Kleineidam
b05ca0e345
Clear properties and statistics before check.
2010-12-17 20:25:06 +01:00
Bastian Kleineidam
a94269fd5b
Remove unused ID part of loggers.
2010-12-15 13:24:31 +01:00
Bastian Kleineidam
f2b8c742fc
Gather URL length statistics.
2010-12-15 07:55:00 +01:00
Bastian Kleineidam
2b2121b9ed
Added content type and domain to URL logging info.
2010-12-14 20:30:53 +01:00
Bastian Kleineidam
431953a6d9
Fix typos.
2010-11-26 21:23:13 +01:00
Bastian Kleineidam
b2bdbed3c4
Move encode() method to base class.
2010-11-22 07:43:33 +01:00
Bastian Kleineidam
d97b7a4e4e
Force UTF-8 for CSV logger.
2010-11-21 20:48:50 +01:00
Bastian Kleineidam
f0b911b608
Use codecs module for proper output encoding.
2010-11-21 20:19:27 +01:00
Bastian Kleineidam
350c952a1f
Use new textwrap feature to not break on hyphens.
2010-11-21 10:48:40 +01:00
Bastian Kleineidam
3ecfb4a67b
Updated support URL.
2010-11-06 17:00:09 +01:00