mirror of
https://github.com/Wojtek242/pylg.git
synced 2024-11-21 23:35:25 +01:00
replacing basestring with str
This commit is contained in:
parent
dded8d3790
commit
302d911d55
@ -85,7 +85,7 @@ def pylg_check_bool(value, name):
|
|||||||
|
|
||||||
def pylg_check_string(value, name):
|
def pylg_check_string(value, name):
|
||||||
|
|
||||||
if not isinstance(value, basestring):
|
if not isinstance(value, str):
|
||||||
|
|
||||||
warning_msg = ("Invalid type for " + name + " in " +
|
warning_msg = ("Invalid type for " + name + " in " +
|
||||||
PYLG_USER_FILE +
|
PYLG_USER_FILE +
|
||||||
|
Loading…
Reference in New Issue
Block a user