
from __future__ import absolute_import
from __future__ import unicode_literals

import dataproperty

from ._error import NullNameError


def _validate_null_string(text):
    if dataproperty.is_empty_string(text):
        raise NullNameError("null name")


from __future__ import absolute_import
from __future__ import unicode_literals

import dataproperty

from ._error import NullNameError


def _validate_null_string(text, error_msg="null name"):
    if dataproperty.is_empty_string(text):
        raise NullNameError(error_msg)

Change to modifiable error message
Change to modifiable error message

  
  from __future__ import absolute_import
  from __future__ import unicode_literals
  
  import dataproperty
  
  from ._error import NullNameError
  
  
- def _validate_null_string(text):
+ def _validate_null_string(text, error_msg="null name"):
      if dataproperty.is_empty_string(text):
-         raise NullNameError("null name")
+         raise NullNameError(error_msg)
  
Change to modifiable error message
## Code Before:

from __future__ import absolute_import
from __future__ import unicode_literals

import dataproperty

from ._error import NullNameError


def _validate_null_string(text):
    if dataproperty.is_empty_string(text):
        raise NullNameError("null name")

## Instruction:
Change to modifiable error message
## Code After:

from __future__ import absolute_import
from __future__ import unicode_literals

import dataproperty

from ._error import NullNameError


def _validate_null_string(text, error_msg="null name"):
    if dataproperty.is_empty_string(text):
        raise NullNameError(error_msg)
