Commit Graph

8350 Commits

Author SHA1 Message Date
Valentin Lorentz
0c6320e9c1 RSS: Display error instead of traceback if fetching a feed failed. 2012-08-26 07:38:40 +00:00
Valentin Lorentz
30f711b12f Google: Prevent flooding when no matches are found. 2012-08-26 07:37:40 +00:00
Valentin Lorentz
d2ab53cd19 Fix parsing of 004 message. (Broken in d9531d2d). 2012-08-25 20:17:15 +02:00
Valentin Lorentz
0780d445e2 Merge pull request #388 from Hoaas/testing
Google: Stop output when there are no result.
2012-08-17 08:27:46 -07:00
Terje Hoås
e1adc011c3 Google: Stop output when there are no result. 2012-08-17 17:16:26 +02:00
Valentin Lorentz
b5e965c48a Web: Decode _after_ reading the page in @fetch. 2012-08-14 21:08:54 +00:00
Joe Julian
653e4dec1b urlquoting the url leads to short urls that prepend "http://" to the url 2012-08-14 18:56:44 +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
a7d36297c2 Prevent run_2to3 from copying locale/ to py3k/ instead of py3k/locale/ (thanks Cravix). 2012-08-13 12:37:23 +00:00
Valentin Lorentz
24d73eb1f8 ShrinkUrl: Add ur1.ca support. 2012-08-11 11:07:40 +02:00
Valentin Lorentz
5dfba06aae Prevent irc.replies from replying in private since fc9daa9. 2012-08-10 13:10:14 +00:00
Valentin Lorentz
12b8e44dc7 AutoMode: Fix traceback since b5c99b1c. 2012-08-10 13:04:25 +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
62d56dee18 Alias: Allow pipes in name. 2012-08-08 21:44:10 +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
1e794d88d7 ChannelLogger: Use open() instead of file(). 2012-08-07 20:53:06 +00:00
Valentin Lorentz
94d09da44a Alias: Save and restore aliases with dots in them. 2012-08-06 20:36:10 +02:00
Valentin Lorentz
e3d170d9fe Add support for network-specific umodes. 2012-08-06 15:59:00 +02:00
Valentin Lorentz
e00b8b9903 Remove src/version.py before running 2to3. 2012-08-05 22:20:41 +02:00
Valentin Lorentz
fad0c9d788 Copy localised files in run_2to3.sh. 2012-08-05 22:20:25 +02:00
Valentin Lorentz
08382d1bfe locale/fr.py: Use spaces instead of tabs. 2012-08-05 20:23:15 +02:00
Valentin Lorentz
22befe3d61 Owner: Prevent use of uninitialized variable. 2012-08-05 18:28:17 +02:00
Valentin Lorentz
ea17fe5c57 Unix: Decode stream for the command line in sysuname. 2012-08-05 18:26:39 +02:00
Valentin Lorentz
4fc1e934c7 PluginDownloader: Open target files in binary mode. 2012-08-05 18:02:54 +02:00
Valentin Lorentz
c149e8fa81 Make 2to3 ouput files in py3k/ subfolder. 2012-08-05 17:56:25 +02:00
Valentin Lorentz
a40ebae4da String: Apply/unapply base64 encoding when dealing with a binary encoding. 2012-08-05 17:55:29 +02:00
Valentin Lorentz
5ae3e3fdcf ShrinkUrl: Decode data from web services. 2012-08-05 16:58:09 +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
709c3390ef Internet: Remove debug print. 2012-08-05 15:20:35 +02:00
Valentin Lorentz
124e292f1f Catch sort errors in ChannelUserDB.
In case the dictionnary has both integers and strings as keys, items.sort() raises a TypeError.
2012-08-05 15:19:20 +02:00
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