clean up pep8

This commit is contained in:
Tim Bentley 2017-05-24 21:01:46 +01:00
parent 3b7852b569
commit 7c1fffdf41
2 changed files with 1 additions and 14 deletions

View File

@ -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)))

View File

@ -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
"""