diff -r 9986ec0e559a -r 10516539f238 Preferences/ViewProfileDialog.py --- a/Preferences/ViewProfileDialog.py Tue Oct 15 22:03:54 2013 +0200 +++ b/Preferences/ViewProfileDialog.py Fri Oct 18 23:00:41 2013 +0200 @@ -19,7 +19,8 @@ """ Class implementing a dialog to configure the various view profiles. """ - def __init__(self, layout, editVisibilities, debugVisibilities, parent=None): + def __init__(self, layout, editVisibilities, debugVisibilities, + parent=None): """ Constructor @@ -29,6 +30,7 @@ @param debugVisibilities list of flags giving the visibilities of the various parts for the 'debug' view profile (list of boolean) @param parent parent widget of this dialog (QWidget) + @exception ValueError raised to indicate an invalid layout """ super(ViewProfileDialog, self).__init__(parent) @@ -38,7 +40,8 @@ elif self.__layout == "Sidebars": self.ui = Ui_ViewProfileSidebarsDialog() else: - raise ValueError("Illegal layout given ({0}).".format(self.__layout)) + raise ValueError( + "Illegal layout given ({0}).".format(self.__layout)) self.ui.setupUi(self) if self.__layout in ["Toolboxes", "Sidebars"]: