Bert JW Regeer
2016-07-19 a0cc269f90f5ac0e6f95e337009e26b144090650
re.split() requires non-empty match

Change from a * to a +, so long as there is something to split on, it
will split.

Fixes this warning:

FutureWarning: split() requires a non-empty pattern match.
return _compile(pattern, flags).split(string, maxsplit)
1 files modified
2 ■■■ changed files
pyramid/scripts/proutes.py 2 ●●● patch | view | raw | blame | history
pyramid/scripts/proutes.py
@@ -296,7 +296,7 @@
            items = config.items('proutes')
            for k, v in items:
                if 'format' == k:
                    cols = re.split(r'[,|\s|\n]*', v)
                    cols = re.split(r'[,|\s\n]+', v)
                    self.column_format = [x.strip() for x in cols]
        except configparser.NoSectionError: