old_contents: # encoding: utf-8
  
  """
  .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  """
  
  from __future__ import absolute_import, unicode_literals
  
  import copy
  import itertools
  from decimal import Decimal
  
  from typepy import StrictLevel, Typecode
  
  
  NOT_QUOTING_FLAGS = {
      Typecode.BOOL: False,
      Typecode.DATETIME: False,
      Typecode.DICTIONARY: False,
      Typecode.INFINITY: False,
      Typecode.INTEGER: False,
      Typecode.IP_ADDRESS: False,
      Typecode.LIST: False,
      Typecode.NAN: False,
      Typecode.NULL_STRING: False,
      Typecode.NONE: False,
      Typecode.REAL_NUMBER: False,
      Typecode.STRING: False,
  }
  
  STRICT_TYPE_MAP = dict(itertools.product(list(Typecode), [StrictLevel.MAX]))
  NOT_STRICT_TYPE_MAP = dict(itertools.product(list(Typecode), [StrictLevel.MIN]))
  
  
  class DefaultValue(object):
      DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z"
      FLOAT_TYPE = Decimal
      INF_VALUE = FLOAT_TYPE("inf")
      NAN_VALUE = FLOAT_TYPE("nan")
  
      CONST_VALUE_MAP = {True: True, False: False}
  
      QUOTING_FLAGS = copy.deepcopy(NOT_QUOTING_FLAGS)
  
      STRICT_LEVEL_MAP = {
          Typecode.BOOL: 1,
          Typecode.DATETIME: StrictLevel.MAX,
          Typecode.DICTIONARY: StrictLevel.MAX,
          Typecode.REAL_NUMBER: 1,
          Typecode.INFINITY: StrictLevel.MIN,
          Typecode.INTEGER: 1,
          Typecode.IP_ADDRESS: StrictLevel.MAX,
          Typecode.LIST: StrictLevel.MAX,
          Typecode.NAN: StrictLevel.MIN,
          Typecode.NONE: StrictLevel.MAX,
          Typecode.NULL_STRING: StrictLevel.MIN,
          Typecode.STRING: StrictLevel.MIN,
      }
  
      TYPE_VALUE_MAP = {Typecode.NONE: None, Typecode.INFINITY: INF_VALUE, Typecode.NAN: NAN_VALUE}
  
  
  def default_datetime_formatter(value):
      return value.strftime(DefaultValue.DATETIME_FORMAT)
  
new_contents: # encoding: utf-8
  
  """
  .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  """
  
  from __future__ import absolute_import, unicode_literals
  
  import copy
  import itertools
  from decimal import Decimal
  
  from typepy import StrictLevel, Typecode
  
  
  NOT_QUOTING_FLAGS = {
      Typecode.BOOL: False,
      Typecode.DATETIME: False,
      Typecode.DICTIONARY: False,
      Typecode.INFINITY: False,
      Typecode.INTEGER: False,
      Typecode.IP_ADDRESS: False,
      Typecode.LIST: False,
      Typecode.NAN: False,
      Typecode.NULL_STRING: False,
      Typecode.NONE: False,
      Typecode.REAL_NUMBER: False,
      Typecode.STRING: False,
  }
  
  STRICT_TYPE_MAP = dict(itertools.product(list(Typecode), [StrictLevel.MAX]))
  NOT_STRICT_TYPE_MAP = dict(itertools.product(list(Typecode), [StrictLevel.MIN]))
  
  
  class DefaultValue(object):
      DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z"
      FLOAT_TYPE = Decimal
      INF_VALUE = FLOAT_TYPE("inf")
      NAN_VALUE = FLOAT_TYPE("nan")
  
      CONST_VALUE_MAP = {}
  
      QUOTING_FLAGS = copy.deepcopy(NOT_QUOTING_FLAGS)
  
      STRICT_LEVEL_MAP = {
          Typecode.BOOL: 1,
          Typecode.DATETIME: StrictLevel.MAX,
          Typecode.DICTIONARY: StrictLevel.MAX,
          Typecode.REAL_NUMBER: 1,
          Typecode.INFINITY: StrictLevel.MIN,
          Typecode.INTEGER: 1,
          Typecode.IP_ADDRESS: StrictLevel.MAX,
          Typecode.LIST: StrictLevel.MAX,
          Typecode.NAN: StrictLevel.MIN,
          Typecode.NONE: StrictLevel.MAX,
          Typecode.NULL_STRING: StrictLevel.MIN,
          Typecode.STRING: StrictLevel.MIN,
      }
  
      TYPE_VALUE_MAP = {Typecode.NONE: None, Typecode.INFINITY: INF_VALUE, Typecode.NAN: NAN_VALUE}
  
  
  def default_datetime_formatter(value):
      return value.strftime(DefaultValue.DATETIME_FORMAT)
  
subject: Modify a default value