diff --git a/python/plugins/processing/algs/r/RAlgorithm.py b/python/plugins/processing/algs/r/RAlgorithm.py index b3466e2d5a8..b23b11fe1e6 100644 --- a/python/plugins/processing/algs/r/RAlgorithm.py +++ b/python/plugins/processing/algs/r/RAlgorithm.py @@ -116,7 +116,7 @@ class RAlgorithm(GeoAlgorithm): self.passFileNames = False self.verboseCommands = [] ender = 0 - line = lines.next().strip('\n').strip('\r') + line = next(lines).strip('\n').strip('\r') while ender < 10: if line.startswith('##'): try: