[change] check for real bool

This commit is contained in:
2017-08-16 11:19:25 +02:00
parent c6fa6d8ff8
commit 4b6b3de547
2 changed files with 23 additions and 5 deletions

View File

@@ -221,6 +221,15 @@ def real_None(value):
return value
def real_Bool(value):
if value == 'True':
return True
elif value == 'False':
return False
else:
return value
def four_digits(year):
"""
takes a two digit year integer and returns the correct four digit equivalent