Skip to content

Commit 1bf11a0

Browse files
committed
fix some warnings
1 parent c663f8e commit 1bf11a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openglider/jsonify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def default(self, obj):
2525
elif hasattr(obj, "__json__"):
2626
type_str = str(obj.__class__)
2727
module = obj.__class__.__module__
28-
type_regex = "<class '{}\.(.*)'>".format(module.replace(".", "\."))
28+
type_regex = "<class '{}\\.(.*)'>".format(module.replace(".", "\\."))
2929
class_name = re.match(type_regex, type_str).group(1)
3030

3131
return {"_type": class_name, "_module": module, "data": obj.__json__()}

0 commit comments

Comments
 (0)