Skip to content

Commit

Permalink
Avoid exporting NOT_GIVEN
Browse files Browse the repository at this point in the history
The value should be kept private.
  • Loading branch information
abravalheri committed Oct 18, 2021
1 parent ffe4181 commit ac99bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ini2toml/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
overload,
)

from .types import NOT_GIVEN, Commented, CommentedKV, CommentedList
from .types import Commented, CommentedKV, CommentedList

CP = ("#", ";")
"""Default Comment Prefixes"""
Expand Down Expand Up @@ -128,7 +128,7 @@ def split_comment(value, coerce_fn=noop, comment_prefixes=CP):
return Commented(coerce_fn(value))

if any(value.startswith(p) for p in comment_prefixes):
return Commented(NOT_GIVEN, _strip_comment(value, comment_prefixes))
return Commented(comment=_strip_comment(value, comment_prefixes))

prefix = prefixes[0] # We can only analyse one...
value, cmt = _split_in_2(value, prefix)
Expand Down
2 changes: 0 additions & 2 deletions src/ini2toml/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from .intermediate_repr import (
KV,
NOT_GIVEN,
Commented,
CommentedKV,
CommentedList,
Expand Down Expand Up @@ -98,7 +97,6 @@ def augment_profiles(
"IntermediateRepr",
"Key",
"KV",
"NOT_GIVEN",
"Plugin",
"Profile",
"ProfileAugmentation",
Expand Down

0 comments on commit ac99bcf

Please sign in to comment.