Commit Graph

8295 Commits

Author SHA1 Message Date
Valentin Lorentz 16aeaaa4fe Use the 'reverse' parameter of sorted() instead of 'mycmp'. 2012-08-05 14:49:47 +02:00
Valentin Lorentz a731841af8 Dict: Decode network stream as unicode. 2012-08-05 14:38:11 +02:00
Valentin Lorentz 0e450a5eff src/callbacks.py: Use unicode_escape if running Python 3. 2012-08-05 14:22:53 +02:00
Valentin Lorentz 34bb33b65f Alias & MoobotFactoids: Fix import error in test.py. 2012-08-05 14:14:55 +02:00
Valentin Lorentz 242a54fbf2 Alias & RSS: remove third argument to types.MethodType.
It is useless in the case in point, and is not compatible with Python 3.
2012-08-05 14:08:04 +02:00
Valentin Lorentz 089be4c8a5 src/i18n.py: Use 'str' as a base class instead of 'unicode'. 2012-08-05 13:48:11 +02:00
Valentin Lorentz 041893aaf9 Socket driver: encode strings just before sending them. 2012-08-05 13:47:48 +02:00
Valentin Lorentz 306105abad src/i18n.py: Fix encoding issue with Python 3. 2012-08-05 13:37:37 +02:00
Valentin Lorentz f1165333e5 src/registry.py: Fix encoding issues with Python 3. 2012-08-05 13:28:16 +02:00
Valentin Lorentz d4f5c03b3f Add 2to3/fix_reload.py. 2012-08-05 13:28:09 +02:00
Valentin Lorentz 32a7da6f51 Add 2to3 fixer to process utils.gen.IterableMap correctly. 2012-08-05 12:32:57 +02:00
Valentin Lorentz 5a35c7fafd Use __import__() instead of exec(). 2012-08-05 10:22:15 +02:00
Valentin Lorentz 393f78c573 Use a boolean instead of hacky reference comparison in utils.iter.choice. 2012-08-05 09:59:42 +02:00
Valentin Lorentz 4ffaff0638 Don't use utils.str.chars anymore. 2012-08-05 09:54:34 +02:00
Valentin Lorentz 0c99a65afa src/conf.py: Use classic comparison instead of str.translate. 2012-08-04 22:47:16 +02:00
Valentin Lorentz 0b7e4e5ce5 src/registry.py: Fix encoding issue with Python 3. 2012-08-04 22:46:52 +02:00
Valentin Lorentz e89dcf867a Remove unused import of UserDict. 2012-08-04 22:39:22 +02:00
Valentin Lorentz fff9b837fb Import ifilter from itertools instead of utils.iter. 2012-08-04 22:38:11 +02:00
Valentin Lorentz 1a64f1052a Use MultipleReplace for utils.str.soundex. 2012-08-04 22:36:40 +02:00
Valentin Lorentz 9edda206ea Remove utils.str.chars. 2012-08-04 22:33:08 +02:00
Valentin Lorentz 3838ab5314 Remove unused imports of new. 2012-08-04 22:31:59 +02:00
Valentin Lorentz 8507498be4 Web: make plugin py3k-friendly. 2012-08-04 22:23:40 +02:00
Valentin Lorentz 6537137b3f Unix: make plugin py3k-friendly. 2012-08-04 22:20:20 +02:00
Valentin Lorentz 65eb79b8f2 String: Use the 'codecs' module and make it py3k-friendly. 2012-08-04 22:04:13 +02:00
Valentin Lorentz de5747aecb ShrinkUrl: Use utils.web.getUrl instead of httplib2. 2012-08-04 21:33:58 +02:00
Valentin Lorentz ced2e7b72d Implement seed, tell, and flush to AtomicFile. 2012-08-04 21:24:17 +02:00
Valentin Lorentz 36812798fb Make ChannelUserDictionary subclass collections.MutableMapping instead of deprecated UserDict.DictMixin. 2012-08-04 21:16:00 +02:00
Valentin Lorentz 11df697b96 RSS: Be compatible with new versions of feedparser. 2012-08-04 20:43:11 +02:00
Valentin Lorentz c99fe9519e PluginDownloader: Make plugin py3k-friendly. 2012-08-04 20:39:30 +02:00
Valentin Lorentz 0134696b8b Misc: make plugin py3k-friendly. 2012-08-04 20:25:36 +02:00
Valentin Lorentz 987aaa6c37 Math: use string.ascii_uppercase instead of string.uppercase. 2012-08-04 20:23:30 +02:00
Valentin Lorentz 224bdf89e7 Math: implement __lt__ and __eq__ in converter.Unit. 2012-08-04 20:22:11 +02:00
Valentin Lorentz 1be1ddb386 Later: Use open() instead of file(). 2012-08-04 20:20:14 +02:00
Valentin Lorentz 0b49c7312f Internet: use binary I/O. 2012-08-04 20:07:24 +02:00
Valentin Lorentz 978a702346 Google: Use 'json' module and apply .decode() on data. 2012-08-04 19:50:30 +02:00
Valentin Lorentz a89ff32297 Filter: Use the 'codecs' module instead of .encode and .decode. 2012-08-04 19:43:11 +02:00
Valentin Lorentz 9dcfce01c7 Dict: Open connection in binary mode. 2012-08-04 19:22:31 +02:00
Valentin Lorentz dcd07a2ec4 ChannelStats & Filter & Math & Unit: use utils instead of str.translate. 2012-08-04 19:13:35 +02:00
Valentin Lorentz 88c2c130ca BadWords & Nickometer: Use 'future' divisions. 2012-08-04 18:54:14 +02:00
Valentin Lorentz 8b7d16c850 Alias & RSS: Use types.MethodType instead of new.instancemethod. 2012-08-04 18:46:16 +02:00
Valentin Lorentz 7f0e1115b5 Make world.py py3k-friendly. 2012-08-04 18:06:49 +02:00
Valentin Lorentz c4dfa55d65 Use HTMLParser instead of deprecated sgmllib in utils.web. 2012-08-04 18:02:45 +02:00
Valentin Lorentz 9ae90c3869 Make utils.structures.CacheDict subclass collections.MutableMapping instead of deprecated UserDict.DictMixin. 2012-08-04 17:46:28 +02:00
Valentin Lorentz 6514db9b3f Prevent name clashes in utils.structures. 2012-08-04 17:42:08 +02:00
Valentin Lorentz 452c706092 Make utils.str.perlRoToReplacer less ambiguous. 2012-08-04 17:36:15 +02:00
Valentin Lorentz 8af6761275 Use 'unicode_escape' in utils.str.dqrepr if running Python 3. 2012-08-04 17:33:17 +02:00
Valentin Lorentz 0a4a12243d Prevent name clash in utils.iter.startswith. 2012-08-04 17:26:59 +02:00
Valentin Lorentz b8fe420ef3 Use 'ast' instead of 'compiler' in utils.gen.safeEval. 2012-08-04 17:24:08 +02:00
Valentin Lorentz d3d93da602 utils.gen.saltHash: encode string before hashing it. 2012-08-04 17:12:23 +02:00
Valentin Lorentz ab978a8c31 Remove utils/gen.py dependency on deprecated libraries (new and UserDict). 2012-08-04 17:09:32 +02:00