Valentin Lorentz
83aca7c651
Merge branch 'testing'
2010-12-22 18:12:28 +01:00
Valentin Lorentz
a58e270516
Fix issue with Pypy
2010-12-12 14:22:44 +01:00
Valentin Lorentz
f2a0b60e79
Fix unicode bug
2010-11-28 17:47:38 +01:00
Valentin Lorentz
4ea359d503
Merge branch 'l10n-fr' into testing
2010-11-11 12:03:04 +01:00
Valentin Lorentz
323ffe1a1f
i18n: Fix internationalization problems
2010-11-11 12:01:56 +01:00
Valentin Lorentz
52b701526d
Merge branch 'l10n-fr' into testing
2010-11-01 15:02:05 +01:00
Valentin Lorentz
30a1ca06b2
Fix the @Misc help formatting
...
Stop removing the \n in the translated docstrings
2010-11-01 15:01:50 +01:00
Valentin Lorentz
0410cf3d0d
Merge branch 'l10n-fr' into testing
2010-11-01 11:49:11 +01:00
Valentin Lorentz
a2c8c613db
Bug fix (didn't keep any beginning or ending space)
2010-11-01 11:47:19 +01:00
Valentin Lorentz
27bb53b560
Merge branch 'l10n-fr' into testing
2010-10-30 21:41:44 +02:00
Valentin Lorentz
3ea8115095
Internationalize src/utils/str.py and modify src/i18n.py to fit this changes
2010-10-30 21:10:49 +02:00
Valentin Lorentz
5f2699b2c0
Merge branch 'l10n-fr' into testing
2010-10-30 12:15:09 +02:00
Valentin Lorentz
b85d289bbb
Fix wrong method name
2010-10-30 12:14:54 +02:00
Valentin Lorentz
5e09a9c887
Merge branch 'l10n-fr' into testing
2010-10-30 12:11:29 +02:00
Valentin Lorentz
ec6a267c09
Internationalize more functions in src/utils/str.py
2010-10-29 15:31:36 +02:00
Valentin Lorentz
e8bc966827
Add locale abitrary code
...
Add the capability for Supybot to load code depending on the locale
src/utils/str.py now imports pluralize and depluralize from this code
2010-10-28 17:28:27 +02:00
Valentin Lorentz
b7651b06a1
Merge branch 'l10n-fr' into testing
2010-10-28 15:45:51 +02:00
Valentin Lorentz
f3a579f3da
Add the '<empty>' feature to nItems, and changed ChannelStats localization in order to use it as bug fixer
2010-10-28 15:18:06 +02:00
Valentin Lorentz
8be4aaeff1
Merge branch 'readability'
2010-10-23 10:38:52 +02:00
Valentin Lorentz
e556fbde2e
Added %S to format()
2010-10-16 11:37:10 +02:00
Valentin Lorentz
50acd3d8d9
Creating the internationalization module and internationalize/localize ChannelStats into French
2010-10-09 11:36:22 +02:00
James Vega
0abe22f5d1
Merge branch 'maint/0.83.4'
2010-09-08 23:50:35 -04:00
James Vega
b0575cec88
Handle changes to fnmatch.translate in Python 2.6
...
Define utils.python.glob2re based on the Python version being used.
Use glob2re in Todo and Note plugins.
Closes: Sf#3059292
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-09-08 23:31:01 -04:00
James Vega
a6857ce9bf
utils/web.py: Only try catching socket.sslerror if built with SSL support
...
Closes: Sf#2998820
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit f03a3f6c85
)
2010-08-24 19:49:30 -04:00
James Vega
f0852a9e45
utils.web: Provide access to the raw httpUrlRe/urlRe strings
...
Using the compiled regexps for a PluginRegexp method's __doc__ doesn't work.
Closes Sourceforge #2879862
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 25fc2de643
)
2010-08-24 19:14:58 -04:00
Ricky Zhou
6299ef5c22
Account for negative times in timeElapsed.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit aa2337791a
)
2010-08-24 19:02:16 -04:00
James Vega
f03a3f6c85
utils/web.py: Only try catching socket.sslerror if built with SSL support
...
Closes: Sf#2998820
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-05-24 15:44:25 -04:00
James Vega
25fc2de643
utils.web: Provide access to the raw httpUrlRe/urlRe strings
...
Using the compiled regexps for a PluginRegexp method's __doc__ doesn't work.
Closes Sourceforge #2879862
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-15 22:16:38 -04:00
James Vega
c5896ff6cb
utils.web: Import urllib's urlencode into our namespace.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-09-29 19:54:07 -04:00
James Vega
de79e679f4
Add a data kwarg to getUrl(Fd) a la urllib2.Request.
...
This allows plugins to easily make POST requests using our getUrl(Fd)
functions.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-09-16 01:17:33 -04:00
Štěpán Němec
a66034f852
Fix some typos/wordings.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-08-26 16:34:12 -04:00
Ricky Zhou
aa2337791a
Account for negative times in timeElapsed.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-07-20 16:07:51 -04:00
Jeremy Fincher
43129239d6
Added Seen.since, which lets a user see messages which were sent since the last time he parted a channel.
2009-07-01 15:40:58 -05:00
Ricky Zhou
fa3a2dd23b
Allow nItems to take longs as well.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-19 00:58:07 -04:00
Jeremy Fincher
757991afc9
Added basic CacheDict with simple test.
2009-04-02 11:28:57 -05:00
James Vega
6b6861f884
Don't specify globals as a kwarg; only in 2.5+
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-22 13:47:42 -04:00
James Vega
58d308b54d
Fix perlReToReplacer when \ is used in the replacement
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-12 17:17:20 -04:00
James Vega
ecd2c63650
Make universalImport support 'from ModuleA import ModuleB'
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-11 15:55:08 -04:00
Jeremy Fincher
a86b4694d7
Added utils.python.universalImport to make the previous idiom cleaner.
2009-03-11 14:05:53 -04:00
James Vega
0c42ea111a
Fix our RE parsing to handle multiple backslashes before the separator
...
This also adds support for using brace pairs ({}, [], (), <>) as the
separators for m//.
2009-03-11 13:37:27 -04:00
James Vega
e787c7aa49
Clarify comment about timestamp() override
2009-03-11 13:37:26 -04:00
James Vega
3d5c877f80
Finally fix the XXX we had for httpUrlRe and urlRe
2009-03-11 13:37:26 -04:00
James Vega
828d41e37d
Add utils/crypt.py as a Python version-agnostic crypt module
2009-03-11 13:37:26 -04:00
James Vega
880cce5505
src/utils/str.format: Recognize digits before the '.' in %f formatting.
2006-04-06 04:01:11 +00:00
James Vega
a3e4fc5b1d
Change the modeline to use softtabstop instead of tabstop.
2006-02-11 15:52:51 +00:00
James Vega
9cb1669b5f
src/utils/web: Add another "UNKNOWN_HOST" code to catch.
2005-10-14 12:59:47 +00:00
James Vega
ef3e002db3
src/utils/net: Fix our method of determining whether an IPV6 or IP socket is needed.
2005-08-22 18:52:37 +00:00
Jeremy Fincher
f8156cc9cc
Removed TupleSubclass, which wasn't being used.
2005-07-21 18:32:41 +00:00
Jeremy Fincher
1aa73acd8d
Removed Acquire, which I won't be using anymore.
2005-07-21 05:04:31 +00:00
Jeremy Fincher
77330d496a
Moved an XXX and added a skeleton method.
2005-07-18 04:55:12 +00:00