Added doc string for remove_readonly

This commit is contained in:
sTiKyt 2020-06-09 08:03:57 +03:00
parent 5d621b69a5
commit 3ef6ff9808
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -196,7 +196,13 @@ def port_selector(): # Requests port input from user
return port_selector() return port_selector()
def remove_readonly(func, path, _): def remove_readonly(func, path, _):
"Clear the readonly bit" """Removes read-only state of file (IDK why it exists but it does already so...)
Args:
func ([type]): [description]
path ([type]): [description]
_ ([type]): [description]
"""
chmod(path, stat.S_IWRITE) chmod(path, stat.S_IWRITE)
func(path) func(path)