Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit a9d9f56

Browse files
committed
Remove fancy unpacking
1 parent c2b199f commit a9d9f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pythonjsonlogger/jsonlogger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _str_to_fn(self, fn_as_str):
133133
if not isinstance(fn_as_str, str):
134134
return fn_as_str
135135

136-
*path, function = fn_as_str.split('.')
136+
path, _, function = fn_as_str.rpartition('.')
137137
module = importlib.import_module('.'.join(path))
138138
return getattr(module, function)
139139

0 commit comments

Comments
 (0)