skizzhg
84931cd0ea
conf.py: Fix typo.
2012-09-10 18:10:18 +02:00
Valentin Lorentz
f63148849c
src/test.py: Fix encoding issues with assertResponse being given an utf8 string.
2012-09-10 17:04:57 +02:00
Valentin Lorentz
eaf6877700
httpserver: Add favicon support.
2012-09-03 10:35:54 +02:00
Daniel Folkinshteyn
2c051bab9f
core: force inet_aton argument to string to prevent occasional error on reconnect.
...
it /should/ always be a string anyway, but sometimes things break with
a TypeError that it is an int instead of the expected string and hangs
up the bot.
2012-08-30 11:32:48 +02:00
Valentin Lorentz
d2ab53cd19
Fix parsing of 004 message. (Broken in d9531d2d
).
2012-08-25 20:17:15 +02:00
Valentin Lorentz
3739def69d
Merge branch 'py3k-backport' into testing
2012-08-13 13:01:58 +00:00
Valentin Lorentz
d2b33a3794
Fix compatibility with Python 2.6.
2012-08-13 13:01:50 +00:00
Valentin Lorentz
5dfba06aae
Prevent irc.replies from replying in private since fc9daa9
.
2012-08-10 13:10:14 +00:00
Valentin Lorentz
fc9daa9953
Make supybot.reply.oneToOne channel-specific.
2012-08-10 12:27:25 +00:00
Valentin Lorentz
19708c55cc
Fix typo in 5f94da8660
.
2012-08-08 19:51:11 +00:00
Valentin Lorentz
45bf9db03c
Merge branch 'py3k-backport' into testing
...
This branch provides support of Python 3 via 2to3 (without dropping
Python 2 support).
2012-08-08 21:46:29 +02:00
Valentin Lorentz
5f94da8660
Fix test.assertHelp for commands with long help (XX more messages).
2012-08-08 21:41:25 +02:00
Valentin Lorentz
e3d170d9fe
Add support for network-specific umodes.
2012-08-06 15:59:00 +02:00
Valentin Lorentz
3dc8e04195
utils.web.urlencode: Encode data into bytes.
2012-08-05 16:57:40 +02:00
Valentin Lorentz
1b6be5842f
src/cdb.py: Use 'future' division and decode/encode data from/to the disk.
2012-08-05 16:57:18 +02:00
Valentin Lorentz
535593d555
src/dbi.py: Use open() instead of file().
2012-08-05 16:56:07 +02:00
Valentin Lorentz
14200e002a
Rename cdb.open to cdb.open_db and open cdb files in binary mode.
2012-08-05 15:47:30 +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
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
32a7da6f51
Add 2to3 fixer to process utils.gen.IterableMap correctly.
2012-08-05 12:32:57 +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
ced2e7b72d
Implement seed, tell, and flush to AtomicFile.
2012-08-04 21:24:17 +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
Valentin Lorentz
caaf290c9b
utils/gen.py: Import imap from itertools instead of utils.iter.
2012-08-04 17:03:51 +02:00
Valentin Lorentz
9de7316f02
Change utils.file.AtomicFile into a wrapper instead of a subclass.
2012-08-04 17:01:36 +02:00
Valentin Lorentz
174a5a4b1f
Encode strings before hashing them in utils.file.mktemp.
2012-08-04 16:39:33 +02:00
Valentin Lorentz
54917f581a
Drop dependency on deprecated httplib.HTTP in test framework.
2012-08-04 16:32:15 +02:00
Valentin Lorentz
b5c99b1ce1
Fix capability checks.
2012-08-04 15:57:51 +02:00
Valentin Lorentz
8211aab92e
Fix issue typo in schedule.removeEvent.
2012-08-04 15:57:47 +02:00
Valentin Lorentz
4bf39f773f
Use the codecs module in src/registry.py.
2012-08-04 15:48:30 +02:00