fixed type error

This commit is contained in:
Lars Noack 2022-11-11 12:09:07 +01:00
parent a5c8e6f051
commit 1b76cb88b7

View File

@ -1,13 +1,13 @@
import os.path
import logging
UNHIDE_CHAR = ','
UNHIDE_CHAR = '_'
def unhide(part: str):
if len(part) == 0:
return ""
if part[0] == ".":
part[0] = UNHIDE_CHAR
return part.replace(".", UNHIDE_CHAR)
return part