def make_aware(value, timezone):
if hasattr(timezone, '<STR_LIT>') and value not in (datetime.datetime.min, datetime.datetime.max):<EOL><INDENT>return timezone.localize(value, is_dst=None)<EOL><DEDENT>else:<EOL><INDENT>return value.replace(tzinfo=timezone)<EOL><DEDENT>
Makes a naive datetime.datetime in a given time zone aware.