diff options
author | Clayton Smith <argilo@gmail.com> | 2020-10-12 16:13:19 -0400 |
---|---|---|
committer | Sebastian Koslowski <sebastian.koslowski@gmail.com> | 2020-10-20 15:16:48 +0200 |
commit | 272d38407f0a7460b0e3958a8dfeb71dfb342b3e (patch) | |
tree | 630b0288a329adecb70aff4036a3366e8f79b131 /grc/gui/ParamWidgets.py | |
parent | 629d8854863ab9ea782d0c0d648f525ed5d4c71b (diff) |
grc: fix pylint C0303: Trailing whitespace
Diffstat (limited to 'grc/gui/ParamWidgets.py')
-rw-r--r-- | grc/gui/ParamWidgets.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/grc/gui/ParamWidgets.py b/grc/gui/ParamWidgets.py index 6114618b52..4e3ac5f8f1 100644 --- a/grc/gui/ParamWidgets.py +++ b/grc/gui/ParamWidgets.py @@ -2,7 +2,7 @@ # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-2.0-or-later -# +# import os import configparser @@ -343,7 +343,7 @@ class DirectoryParam(FileParam): On success, update the entry. """ dirname = self.param.get_evaluated() if self.param.is_valid() else '' - + if not os.path.isdir(dirname): # Check if directory exists, if not fall back to workdir dirname = os.getcwd() @@ -360,7 +360,7 @@ class DirectoryParam(FileParam): dir_dialog.set_current_folder(dirname) dir_dialog.set_local_only(True) dir_dialog.set_select_multiple(False) - + # Show dialog and update paramter on success if Gtk.ResponseType.OK == dir_dialog.run(): path = dir_dialog.get_filename() @@ -370,4 +370,3 @@ class DirectoryParam(FileParam): # Cleanup dialog dir_dialog.destroy() - |