Chris Mayo
4b06485a05
Fix FTP checker
...
In Python 2 StringIO could accept either Unicode or 8-bit strings.
Similar change made for HttpUrl:
06fdd78f9 ("Python3: fix TypeError in HttpUrl.read_content()",
2019-09-15)
Non-existent FtpUrl.max_size introduced in:
7b34be590 ("Introduce check plugins, use Python requests for http/s
connections, and some code cleanups and improvements.", 2014-03-01)
Additional self.direct() not added in:
f107092a8 ("Fix handling of user/password info in URLs.", 2012-06-10)
2023-04-17 19:24:22 +01:00
Chris Mayo
8065c75c4e
Convert some printf-style strings
2022-11-08 19:21:29 +00:00
Chris Mayo
689557d9af
Add logging of MIME types and improve docstrings
2022-10-17 19:21:03 +01:00
Chris Mayo
d6936ceb91
Add warning url-content-type-unparseable
2022-09-02 19:29:11 +01:00
Chris Mayo
a60648e348
Remove support for ftp_proxy
...
Was limited to HTTP proxy servers and prevents simplifying and fixing
HTTP proxy support.
2021-12-13 19:25:23 +00:00
Chris Mayo
1f58419322
Remove unneeded pass statements
2020-08-22 17:17:02 +01:00
Chris Mayo
a6b1eb45b1
Convert to Python 3 super()
2020-06-03 20:06:36 +01:00
Chris Mayo
a92a684ac4
Run black on linkcheck/
2020-05-30 17:01:36 +01:00
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
f8c9faec1b
Remove Python 2 cStringIO imports
2020-05-15 19:37:04 +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
Chris Mayo
f5e7f3a382
Remove use of the future package
...
It was providing Python 2 compatibility.
2020-04-15 19:49:16 +01:00
Chris Mayo
f60810b050
Fix Python 3 "TypeError: decoding str is not supported" in FtpUrl.cwd
2019-04-22 19:34:46 +01:00
Bastian Kleineidam
029c20ed98
More python3 fixes
2014-09-12 21:59:07 +02:00
Bastian Kleineidam
eaa8a963ec
Refactor logging configuration.
2014-05-10 21:23:06 +02:00
Bastian Kleineidam
fab2c2da98
Improve content type setting.
2014-03-05 20:12:19 +01:00
Bastian Kleineidam
192cfab009
Cleanup of the UrlData.is_* functions
2014-03-05 19:23:16 +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
0ca63797bf
Remove content cache.
2013-12-10 23:41:52 +01:00
Bastian Kleineidam
023da7c993
Remove the duplicate URL content check.
2013-12-04 19:12:40 +01:00
Bastian Kleineidam
42a17cbb98
Prepare py3 port and display sys.argv on internal errors.
2012-11-26 18:49:07 +01:00
Bastian Kleineidam
64de760b97
Added debug statements for unparseable content types.
2012-10-24 22:06:42 +02:00
Bastian Kleineidam
f484a6776d
Use timeout value from configuration.
2012-10-10 10:53:52 +02:00
Bastian Kleineidam
6d47b76509
Limit HTTP and FTP connections. Gets rid of spurious BadStatusLine errors.
2012-10-09 21:04:20 +02:00
Bastian Kleineidam
4e59056ee7
Warn about duplicate URL contents.
2012-09-17 19:49:50 +02:00
Bastian Kleineidam
6e1841cf1f
Print download and cache statistics.
2012-09-17 15:23:25 +02:00
Bastian Kleineidam
7a6436f08f
Increase checked cache in URL queue.
2012-09-02 22:21:49 +02:00
Bastian Kleineidam
f107092a8a
Fix handling of user/password info in URLs.
2012-06-10 22:07:42 +02:00
Bastian Kleineidam
a2978209e6
Ignore errors trying to get FTP feature set.
2011-10-18 13:10:49 +02:00
Bastian Kleineidam
10bbb696e8
Limit download file size to 5MB.
2011-05-05 21:10:55 +02:00
Bastian Kleineidam
c5884b8d87
Add function documentation.
2011-02-14 21:06:34 +01:00
Bastian Kleineidam
85f3690068
Updated copyright.
2011-02-11 14:00:31 +01:00
Bastian Kleineidam
db6a3669b3
Correctly detect empty FTP paths as directories.
2011-02-11 12:35:53 +01:00
Bastian Kleineidam
fd3fe8dcaa
Fix missing content types for cached URLs.
2010-12-23 07:37:36 +01:00
Bastian Kleineidam
7c55351511
Add get_content_type methods to subclasses.
2010-12-15 07:54:44 +01:00
Bastian Kleineidam
5c9c15071a
Limit FTP download file size.
2010-11-25 20:44:41 +01:00
Bastian Kleineidam
0cf22e5242
Limit FTP download file size.
2010-11-25 20:44:14 +01:00
Bastian Kleineidam
e494d6bbb6
Move MIME type detection into fileutil.py module, and use mimetools for detection.
2010-10-03 08:47:48 +02:00
Bastian Kleineidam
1faedafb33
Fix data size for HTTP requests.
2010-08-04 00:06:25 +02:00
Bastian Kleineidam
074b5ded32
Support UTF-8 encoded filenames in FTP servers.
2010-03-09 08:15:29 +01:00
Bastian Kleineidam
c88791b815
Fix support for non-standard FTP ports.
2010-03-09 07:49:05 +01:00
Bastian Kleineidam
5e06b6b8d4
Updated FSF address in GPL blurb
2009-07-24 23:58:20 +02:00
Bastian Kleineidam
7862147ca3
Fix showing content size.
2009-03-01 23:04:48 +01:00
calvin
a26ca4c23a
Replace C ftpparse module with Python implementation
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3892 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2009-01-10 14:11:17 +00:00
calvin
e9805dbd8a
Updated copyright year to 2009
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3887 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2009-01-08 14:18:03 +00:00
calvin
8d5d4827c3
Change ftpparse import to avoid py2exe load error.
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3883 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2009-01-08 12:28:39 +00:00
calvin
c20e706761
Made some format changes on translated strings.
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3870 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-11-28 20:22:48 +00:00