Commit Graph

8338 Commits

Author SHA1 Message Date
Valentin Lorentz
cd6d9da8e4 Debug: Fix Python 3 compatibility. 2013-05-11 11:44:21 +02:00
Valentin Lorentz
f0e49a0402 Math: Fix load on Python 3. 2013-05-11 11:42:18 +02:00
Valentin Lorentz
75c3d2fa89 Dict: Use normal import (was broken in Python 3.3 for some reason). 2013-05-11 11:41:55 +02:00
Valentin Lorentz
a55611a49e core: Various Python 3 compatibility fixes.
Conflicts:
	src/httpserver.py
2013-05-11 11:19:31 +02:00
Valentin Lorentz
f8a57b78e4 Google: Fix snarfer with Python 3. 2013-05-11 11:17:53 +02:00
Valentin Lorentz
0608676d0a setup.py: Remove error output if not in a git repo. 2013-05-11 11:16:25 +02:00
Valentin Lorentz
c84d3d6b75 Speed up install on Python3 (2to3 is ran only on modified files). 2013-05-11 11:16:18 +02:00
Valentin Lorentz
00d9567b4f Fix typo. 2013-05-11 11:16:13 +02:00
Valentin Lorentz
3b44bc34b7 Fix previous commit. 2013-05-11 11:16:03 +02:00
Valentin Lorentz
20665cf31d 2to3/run.py: Fix compatibility issue with old Python 3.x versions (2to3 does not suport -W and -o). 2013-05-11 11:15:58 +02:00
Valentin Lorentz
38d039ada2 setup.py: In debug mode, display 2to3 logs. 2013-05-11 11:15:53 +02:00
Valentin Lorentz
3e26a2d7cf setup.py: Add the --debug switch. 2013-05-11 11:15:49 +02:00
Valentin Lorentz
29421f3cd7 setup.py: Hide 2to3's output. 2013-05-11 11:15:43 +02:00
Valentin Lorentz
c7a1779f53 Fix previous commit 2013-05-11 11:15:37 +02:00
Valentin Lorentz
4a032834fb setup.py: Fix bug if setup is not in the current working directory. 2013-05-11 11:15:32 +02:00
Valentin Lorentz
170183adbd setup.py: exit after it has called itself. 2013-05-11 11:15:17 +02:00
Valentin Lorentz
cadf953e86 Make the setup.py runnable by Python 3 and run 2to3 automatically.
Conflicts:
	sandbox/run_2to3.sh
	setup.py
2013-05-11 11:15:03 +02:00
Valentin Lorentz
9e5f7025d8 INSTALL.md: Add extra instructions for Python 3. 2013-01-20 15:23:00 +01:00
Valentin Lorentz
df62ddad78 Google: Fix encoding with Python 3. 2013-01-06 16:46:21 +01:00
Valentin Lorentz
cca03ba06b Copy docs to py3k/ too. 2013-01-06 13:39:56 +01:00
Valentin Lorentz
6cf4901344 Fix 2to3 fixers to work with Python 3. 2013-01-06 13:35:20 +01:00
Valentin Lorentz
fee7ed4cd1 Fix 2to3 fixers to work with Python 3. 2013-01-06 13:34:13 +01:00
Valentin Lorentz
ad3bf1302f Web: Fix compatibility with Python <= 2.6. 2012-09-22 17:43:59 +00:00
Valentin Lorentz
a95546316f Web: Fix title snarfer with titles containing unicode characters. 2012-09-22 17:34:33 +00:00
Valentin Lorentz
841dc719e1 Web: Fix page decoding. 2012-09-19 15:08:52 +00:00
Valentin Lorentz
f747c5a7d4 Config: Fix @reload. 2012-09-07 17:20:09 +00:00
Valentin Lorentz
d2b33a3794 Fix compatibility with Python 2.6. 2012-08-13 13:01:50 +00:00
Valentin Lorentz
1e794d88d7 ChannelLogger: Use open() instead of file(). 2012-08-07 20:53:06 +00: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