From eb308a604daf37f005e351bc3713aec7489b614a Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Tue, 23 Aug 2016 15:48:10 +0300 Subject: [PATCH] fix open() call --- python/plugins/processing/algs/taudem/TauDEMAlgorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/processing/algs/taudem/TauDEMAlgorithm.py b/python/plugins/processing/algs/taudem/TauDEMAlgorithm.py index d86f9d6002b..e3f1eb031e8 100644 --- a/python/plugins/processing/algs/taudem/TauDEMAlgorithm.py +++ b/python/plugins/processing/algs/taudem/TauDEMAlgorithm.py @@ -66,7 +66,7 @@ class TauDEMAlgorithm(GeoAlgorithm): return QIcon(os.path.join(pluginPath, 'images', 'taudem.svg')) def defineCharacteristicsFromFile(self): - with codecs.open(self.descriptionFile, 'utf-8') as f: + with codecs.open(self.descriptionFile, encoding='utf-8') as f: line = f.readline().strip('\n').strip() self.name = line self.i18n_name = self.tr(line)