# Path: foil/parsers.py
# def parse_iso_date(value):
#     if value is None or value is '':
#         return None
#     else:
#         return parse_date(value)


import collections
import iso8601
from functools import partial
from itertools import chain
from types import MappingProxyType
from typing import Callable
from uuid import UUID
from foil.parsers import parse_iso_date as _parse_iso_date



def parse_uuid(value):
    try:
        value = UUID(value, version=4)
    except ValueError:
        pass

    return value


def parse_iso_date(value):
    try:
        value = _parse_iso_date(value)
    except AttributeError:

# Path: foil/parsers.py
# def parse_iso_date(value):
#     if value is None or value is '':
#         return None
#     else:
#         return parse_date(value)


# Path: foil/deserializers.py
import collections
import iso8601
from functools import partial
from itertools import chain
from types import MappingProxyType
from typing import Callable
from uuid import UUID
from foil.parsers import parse_iso_date as _parse_iso_date




def parse_uuid(value):
    try:
        value = UUID(value, version=4)
    except ValueError:
        pass

    return value


def parse_iso_date(value):
    try:
        value = _parse_iso_date(value)
    except AttributeError:

        pass