From 7c1fffdf41d0c037ad96e1e3574869258994014b Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Wed, 24 May 2017 21:01:46 +0100 Subject: [PATCH] clean up pep8 --- openlp/core/common/__init__.py | 13 ------------- openlp/core/ui/lib/pathedit.py | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) 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 """