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
1663e10fe7
Remove spaces after names in function definitions
...
This is a PEP 8 convention, E211.
2020-05-16 20:19:42 +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
Chris Mayo
e7c5f353cd
Remove unused function linkcheck.fileutil.write_file()
...
Doesn't appear to have ever been used.
Causes flake8 error:
linkcheck/fileutil.py:45:9: F821 undefined name 'file'
2020-03-31 19:46:31 +01:00
Chris Mayo
0ee4414a60
Replace memoized with functools.lru_cache
2020-03-31 19:46:31 +01:00
Chris Mayo
a9f147c347
Update fileutil.pathencode() because paths are now strings
2019-10-05 19:38:57 +01:00
Petr Dlouhý
fb39a4116f
Python3: fix fileutil
2018-01-05 20:31:21 +01:00
Bastian Kleineidam
4b28e6e860
Move mime stuff into own submodule.
2014-05-10 21:22:10 +02:00
Bastian Kleineidam
ef13a3fce1
Implement sitemap and sitemap index parsing.
2014-03-05 19:26:37 +01:00
Bastian Kleineidam
380f14453b
Fix mimetype guessing from content.
2014-03-05 19:23:58 +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
64d95e45e0
Remove local HTML and CSS syntax check.
2013-02-08 21:36:02 +01:00
Bastian Kleineidam
45a4bbdaa9
Use locale.format() and os.path.getsize()
2012-12-01 00:05:14 +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
3a51ac7662
Warn about accessible passwords in config files.
2012-10-15 14:36:10 +02:00
Bastian Kleineidam
1db63227f6
Memoize file operations to minimize disk I/O.
2012-09-18 09:37:21 +02:00
Bastian Kleineidam
ac6591a009
Recognize WML files on Windows.
2012-08-24 09:46:26 +02:00
Bastian Kleineidam
db95fce77e
Ignore PHP processing instructions in local files.
2012-06-10 14:02:01 +02:00
Bastian Kleineidam
b12c1e40fb
Allow specifying the file mode when opening temp files.
2012-06-10 11:03:43 +02:00
Bastian Kleineidam
b83d3b53fc
Added missing documentation.
2012-06-02 00:31:02 +02:00
Bastian Kleineidam
e13a479362
Fix error logging.
2012-05-23 06:55:02 +02:00
Bastian Kleineidam
fa92d59448
Catch mimedb init errors.
2012-05-23 06:02:23 +02:00
Bastian Kleineidam
1deeb88e16
Add project support.
2012-01-26 20:23:15 +01:00
Bastian Kleineidam
f1eb51d885
Updated copyright
2012-01-06 09:21:30 +01:00
Bastian Kleineidam
e316f5be68
Remove unneeded comment.
2012-01-04 20:04:36 +01:00
Bastian Kleineidam
3d9958dfbb
Parse Safari bookmark files.
2011-12-17 16:38:25 +01:00
Bastian Kleineidam
53f34d6b2e
Add is_tty utility function.
2011-05-26 07:28:14 +02:00
Bastian Kleineidam
719441cca5
Make module detection more robust and use it when possible.
2011-04-20 09:08:11 +02:00
Bastian Kleineidam
4ee62863e5
Recognize PHP files as HTML files on Windows.
2011-03-11 13:30:34 +01:00
Bastian Kleineidam
c6d2eab46c
Prevent false positives when detecting file type of certain archive files.
2011-03-10 13:13:25 +01:00
Bastian Kleineidam
a06f354837
Add distutils find_executable to fileutils.
2011-03-09 10:47:38 +01:00
Bastian Kleineidam
e638a2fe6d
Updated copyright and translations. Added some missing docstrings.
2011-02-17 07:38:02 +01:00
Bastian Kleineidam
0d4377d1ba
Support Google Chrome Bookmark files.
2011-02-15 18:26:00 +01:00
Bastian Kleineidam
71b15b70f4
Updated copyright
2011-01-06 09:59:57 +01:00
Bastian Kleineidam
5f70b7210f
Add tempfile utility function.
2011-01-06 09:52:11 +01:00
Bastian Kleineidam
3775f18621
Fix Linkchecker URL list detection.
2010-10-03 17:58:56 +02:00
Bastian Kleineidam
133b4f53fd
Fix typos and remove unneeded functions.
2010-10-03 12:57:42 +02: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
7d076e7129
Add get_size() method for local files.
2010-07-29 19:52:26 +02:00
Bastian Kleineidam
796cf0a7cd
Updated copyright year
2010-03-07 11:59:18 +01:00
Bastian Kleineidam
5e06b6b8d4
Updated FSF address in GPL blurb
2009-07-24 23:58:20 +02: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
3eac1be9ab
Require and use Python 2.5
...
Use Python 2.5 features and get rid of old compat code. Also some
code cleanups have been made.
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3737 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-04-27 11:39:21 +00:00
calvin
6499cb1a63
updated copyright year
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3658 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-01-02 14:31:19 +00:00
calvin
df48d4a905
bump up copyright year
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3534 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2007-01-01 14:57:38 +00:00
calvin
d05c68ef74
added path encoding
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3145 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2006-05-13 13:41:46 +00:00
calvin
78dfb4c293
whitespace normalization
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3106 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2006-04-03 19:15:07 +00:00
calvin
2788fc2a59
add modification time information functions
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3052 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2006-02-03 20:42:56 +00:00