diff --git a/openlp/core/common/__init__.py b/openlp/core/common/__init__.py index aab74d004..fde02506d 100644 --- a/openlp/core/common/__init__.py +++ b/openlp/core/common/__init__.py @@ -482,16 +482,3 @@ def get_file_encoding(filename): return detector.result except OSError: log.exception('Error detecting file encoding') - - -def json_default(obj): - """ - Function to help save objects as JSON - - :param obj: object - :return: the object dictionary - """ - try: - return obj.__dict__ - except: - raise TypeError("Unserializable object {} of type {}".format(obj, type(obj))) diff --git a/openlp/core/ui/lib/pathedit.py b/openlp/core/ui/lib/pathedit.py index 74f37c581..c489daa33 100755 --- a/openlp/core/ui/lib/pathedit.py +++ b/openlp/core/ui/lib/pathedit.py @@ -72,7 +72,7 @@ class PathEdit(QtWidgets.QWidget): Set up the widget :param show_revert: Show or hide the revert button :type show_revert: bool - + :return: None :rtype: None """