[svn r64263] fix failing test on windows
--HG-- branch : trunk
This commit is contained in:
parent
b3e22554d7
commit
945c72ddf3
|
@ -49,7 +49,7 @@ class Syslog:
|
||||||
for priority in "LOG_EMERG LOG_ALERT LOG_CRIT LOG_ERR LOG_WARNING LOG_NOTICE LOG_INFO LOG_DEBUG".split():
|
for priority in "LOG_EMERG LOG_ALERT LOG_CRIT LOG_ERR LOG_WARNING LOG_NOTICE LOG_INFO LOG_DEBUG".split():
|
||||||
try:
|
try:
|
||||||
exec("%s = py.std.syslog.%s" % (priority, priority))
|
exec("%s = py.std.syslog.%s" % (priority, priority))
|
||||||
except AttributeError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __init__(self, priority = None):
|
def __init__(self, priority = None):
|
||||||
|
|
Loading…
Reference in New Issue