Skip to content

Commit

Permalink
misc: change global variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rien333 committed Dec 6, 2024
1 parent 2e7680e commit 50127e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdto/mdto.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
import validators

# globals
MAX_NAAM_LENGTH = 80
_force, _quiet = False, False

MDTO_MAX_NAAM_LENGTH = 80

# Helper methods
def _process_file(file_or_filename) -> TextIO:
Expand Down Expand Up @@ -386,10 +386,10 @@ class Object(XMLSerializable):

def __post_init__(self):
# check if name is of the right length
if len(self.naam) > MAX_NAAM_LENGTH:
if len(self.naam) > MDTO_MAX_NAAM_LENGTH:
_warn(
f"value '{self.naam}' of element 'naam' "
f"exceeds maximum length of {MAX_NAAM_LENGTH}."
f"exceeds maximum length of {MDTO_MAX_NAAM_LENGTH}."
)

def to_xml(self, root: str) -> ET.ElementTree:
Expand Down

0 comments on commit 50127e5

Please sign in to comment.