From 469e7f3bb65056c7a95dd93c458aeaeb9b9cf394 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Wed, 9 Aug 2017 21:15:02 +0100 Subject: [PATCH] remove the wraps decoartor --- openlp/core/ui/lib/filedialog.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/openlp/core/ui/lib/filedialog.py b/openlp/core/ui/lib/filedialog.py index 8159078e0..379b34177 100755 --- a/openlp/core/ui/lib/filedialog.py +++ b/openlp/core/ui/lib/filedialog.py @@ -31,10 +31,9 @@ from openlp.core.lib import replace_params class FileDialog(QtWidgets.QFileDialog): @classmethod - @wraps(QtWidgets.QFileDialog.getExistingDirectory) def getExistingDirectory(cls, *args, **kwargs): """ - Reimplement `getExistingDirectory` so that it can be called with, and return Path objects + Wraps `getExistingDirectory` so that it can be called with, and return Path objects :type parent: QtWidgets.QWidget or None :type caption: str @@ -51,10 +50,9 @@ class FileDialog(QtWidgets.QFileDialog): return str_to_path(return_value) @classmethod - @wraps(QtWidgets.QFileDialog.getOpenFileName) def getOpenFileName(cls, *args, **kwargs): """ - Reimplement `getOpenFileName` so that it can be called with, and return Path objects + Wraps `getOpenFileName` so that it can be called with, and return Path objects :type parent: QtWidgets.QWidget or None :type caption: str @@ -75,7 +73,7 @@ class FileDialog(QtWidgets.QFileDialog): @classmethod def getOpenFileNames(cls, *args, **kwargs): """ - Reimplement `getOpenFileNames` so that it can be called with, and return Path objects + Wrap `getOpenFileNames` so that it can be called with, and return Path objects :type parent: QtWidgets.QWidget or None :type caption: str @@ -97,7 +95,7 @@ class FileDialog(QtWidgets.QFileDialog): @classmethod def getSaveFileName(cls, *args, **kwargs): """ - Reimplement `getSaveFileName` so that it can be called with, and return Path objects + Wrap `getSaveFileName` so that it can be called with, and return Path objects :type parent: QtWidgets.QWidget or None :type caption: str