Commit a45c35e3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Boolean type exists since Python 2.3. We don't need at all the compatibility...

Boolean type exists since Python 2.3. We don't need at all the compatibility with Python 2.2 or older.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30369 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e34f7c7d
......@@ -31,10 +31,7 @@
from Constraint import Constraint
from DateTime import DateTime
try:
boolean_types = (int, bool)
except NameError:
boolean_types = (int, )
boolean_types = (int, bool)
class PropertyTypeValidity(Constraint):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment