Michele Cella
f54ebec654
Fixes #378 : must acquire JID_CACHE_LOCK before adding to JID_CACHE
2015-07-31 11:55:50 +02:00
Joshua Downer
7a908ac07b
Removed duplicate property
2015-05-28 09:35:50 -04:00
Lance Stout
be874e3c70
Fix deepcopying JIDs
2013-09-24 16:32:30 -07:00
Dustin Ingram
b20dc9fe2b
Typo in _validate_domain error message
...
s/illegar/illegal/g
2013-08-16 17:47:26 -04:00
Jean-Philippe Caruana
8f364b9a95
performance in jid : replace __getattr__ et __setattr__ by @property and @xxx.setter
...
this implementatian is much more verbose but faster, especilally if you are dealing a lot with JIDs
on my box, ./testall.py now takes 45s. It takes 53s in the old implementation (about 15% faster)
2013-07-25 16:36:18 +02:00
Lance Stout
3519e845a3
Apparently twisted fills in inet_pton on Windows and uses different exceptions.
2012-12-21 13:43:38 -08:00
Lance Stout
8b29900be4
Fix some Python3 compatibility issues.
2012-12-14 09:37:29 -08:00
Joe Hildebrand
61aff9f49a
update JID_CACHE logic again.
2012-10-31 13:27:31 -07:00
Lance Stout
d0666a5eb6
Update JID cache to do extra memoization and locking.
...
Passing cache_lock=True to JID() will insert the JID into the cache
and prevent it from being dropped from the cache.
2012-10-24 12:47:25 -07:00
Lance Stout
c5046b9c91
Fix JID cache (wrong in-progress version comitted earlier)
2012-10-22 20:09:35 -07:00
Lance Stout
5e9266ba90
Optimize generating JIDs with some caching.
2012-10-22 13:57:49 -07:00
Lance Stout
b84e359770
Use the proper mappings for nodeprep.
2012-08-01 11:11:40 -07:00
Lance Stout
6645a3be40
Compile JID pattern regex.
2012-07-27 11:24:01 -07:00
Lance Stout
352ee2f2fd
Fix JID validation bugs, add lots of tests.
2012-07-24 01:43:20 -07:00
Lance Stout
78aa5c3dfa
Add more validation for 0 length JID components.
2012-07-24 01:43:20 -07:00
Lance Stout
613323b5fb
Finish docstrings for jid.py
2012-07-24 01:43:20 -07:00
Lance Stout
1600bb0aaf
Cleanup and docs.
2012-07-24 01:43:20 -07:00
Lance Stout
b5c9c98a8b
Add JID escaping support.
2012-07-24 01:43:20 -07:00
Lance Stout
e4e18a416f
Add validation for JIDs.
2012-07-24 01:43:20 -07:00