Allow datetime.date in pysocket

This commit is contained in:
Cédric Krier committed 2008-03-17 17:47:32 +01:00
1 parent 0213885483
commit 2832e11278
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ import cStringIO
DNS_CACHE = {}
_ALLOWED_MODULES = {'datetime': ['datetime'], 'decimal': ['Decimal']}
_ALLOWED_MODULES = {'datetime': ['datetime', 'date'], 'decimal': ['Decimal']}
def checkfunction(module, klass):
if module in _ALLOWED_MODULES and klass in _ALLOWED_MODULES[module]: