Skip to content

Commit 0796049

Browse files
committed
Remove unnecessary check
1 parent d96814b commit 0796049

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

dpath/util.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ def _split_path(path: str, separator: str) -> Union[List[IntAwareSegment], IntAw
3333
else:
3434
split_segments = path.lstrip(separator).split(separator)
3535

36-
# FIXME: This check was in the old internal library, but I can't
37-
# see a way it could fail...
38-
for i, segment in enumerate(split_segments):
39-
if (separator and (separator in segment)):
40-
raise InvalidKeyName("{} at {}[{}] contains the separator '{}'"
41-
"".format(segment, split_segments, i, separator))
42-
4336
# Attempt to convert integer segments into actual integers.
4437
final = []
4538
for segment in split_segments:

0 commit comments

Comments
 (0)