import ast


def isEmpty(value):
    if value:
        return False
    else:
        return True


def isNotEmpty(value):
    if not value:
        return False
    else:
        return True


def stringToDict(param):
    if isNotEmpty(param) or param != '':
        return ast.literal_eval(param)


def stringToDictList(list):
    dic_list = []
    if list is not None:
        for r in list:
            dic_list.append(stringToDict(r))

    return dic_list


def deleteNullDict(dic):
    if dic is not None:

        diccopy = dic.copy()

        if 'csrfmiddlewaretoken' in diccopy:
            del diccopy['csrfmiddlewaretoken']

        for key, value in dic.items():
            if isEmpty(value) or value == 'None' or value == '':
                del diccopy[key]
        dic = diccopy

    return dic


def putKeyVlue(param):

    param = stringToDict(param)
    if param is not None:
        param = ast.literal_eval(param)

    return param


def list_to_record(list):

    if isEmpty(list):
        return None

    record = None

    for param in list:
        record = param
        break

    return record


def isNone(*value):
    for v in value:
        if v is None:
            return True

    return False

import ast


def isEmpty(value):
    if value:
        return False
    else:
        return True


def isNotEmpty(value):
    if not value:
        return False
    else:
        return True


def stringToDict(param):
    if isNotEmpty(param) or param != '':
        return ast.literal_eval(param)


def stringToDictList(list):
    dic_list = []
    if list is not None:
        for r in list:
            dic_list.append(stringToDict(r))

    return dic_list


def deleteNullDict(dic):
    if dic is not None:

        diccopy = dic.copy()

        if 'csrfmiddlewaretoken' in diccopy:
            del diccopy['csrfmiddlewaretoken']

        for key, value in dic.items():
            if value == 'None':
                del diccopy[key]
        dic = diccopy

    return dic


def putKeyVlue(param):

    param = stringToDict(param)
    if param is not None:
        param = ast.literal_eval(param)

    return param


def list_to_record(list):

    if isEmpty(list):
        return None

    record = None

    for param in list:
        record = param
        break

    return record


def isNone(*value):
    for v in value:
        if v is None:
            return True

    return False

Support to request null string
Support to request null string

  import ast
  
  
  def isEmpty(value):
      if value:
          return False
      else:
          return True
  
  
  def isNotEmpty(value):
      if not value:
          return False
      else:
          return True
  
  
  def stringToDict(param):
      if isNotEmpty(param) or param != '':
          return ast.literal_eval(param)
  
  
  def stringToDictList(list):
      dic_list = []
      if list is not None:
          for r in list:
              dic_list.append(stringToDict(r))
  
      return dic_list
  
  
  def deleteNullDict(dic):
      if dic is not None:
  
          diccopy = dic.copy()
  
          if 'csrfmiddlewaretoken' in diccopy:
              del diccopy['csrfmiddlewaretoken']
  
          for key, value in dic.items():
-             if isEmpty(value) or value == 'None' or value == '':
+             if value == 'None':
                  del diccopy[key]
          dic = diccopy
  
      return dic
  
  
  def putKeyVlue(param):
  
      param = stringToDict(param)
      if param is not None:
          param = ast.literal_eval(param)
  
      return param
  
  
  def list_to_record(list):
  
      if isEmpty(list):
          return None
  
      record = None
  
      for param in list:
          record = param
          break
  
      return record
  
  
  def isNone(*value):
      for v in value:
          if v is None:
              return True
  
      return False
  
Support to request null string
## Code Before:
import ast


def isEmpty(value):
    if value:
        return False
    else:
        return True


def isNotEmpty(value):
    if not value:
        return False
    else:
        return True


def stringToDict(param):
    if isNotEmpty(param) or param != '':
        return ast.literal_eval(param)


def stringToDictList(list):
    dic_list = []
    if list is not None:
        for r in list:
            dic_list.append(stringToDict(r))

    return dic_list


def deleteNullDict(dic):
    if dic is not None:

        diccopy = dic.copy()

        if 'csrfmiddlewaretoken' in diccopy:
            del diccopy['csrfmiddlewaretoken']

        for key, value in dic.items():
            if isEmpty(value) or value == 'None' or value == '':
                del diccopy[key]
        dic = diccopy

    return dic


def putKeyVlue(param):

    param = stringToDict(param)
    if param is not None:
        param = ast.literal_eval(param)

    return param


def list_to_record(list):

    if isEmpty(list):
        return None

    record = None

    for param in list:
        record = param
        break

    return record


def isNone(*value):
    for v in value:
        if v is None:
            return True

    return False

## Instruction:
Support to request null string
## Code After:
import ast


def isEmpty(value):
    if value:
        return False
    else:
        return True


def isNotEmpty(value):
    if not value:
        return False
    else:
        return True


def stringToDict(param):
    if isNotEmpty(param) or param != '':
        return ast.literal_eval(param)


def stringToDictList(list):
    dic_list = []
    if list is not None:
        for r in list:
            dic_list.append(stringToDict(r))

    return dic_list


def deleteNullDict(dic):
    if dic is not None:

        diccopy = dic.copy()

        if 'csrfmiddlewaretoken' in diccopy:
            del diccopy['csrfmiddlewaretoken']

        for key, value in dic.items():
            if value == 'None':
                del diccopy[key]
        dic = diccopy

    return dic


def putKeyVlue(param):

    param = stringToDict(param)
    if param is not None:
        param = ast.literal_eval(param)

    return param


def list_to_record(list):

    if isEmpty(list):
        return None

    record = None

    for param in list:
        record = param
        break

    return record


def isNone(*value):
    for v in value:
        if v is None:
            return True

    return False
