summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <mmerickel@users.noreply.github.com>2016-08-31 22:47:01 -0500
committerGitHub <noreply@github.com>2016-08-31 22:47:01 -0500
commit86d7fc134f481ddc36a36af90ff169bb03471851 (patch)
tree5779f4ec65388cfe2cdf465e1b8bb2551c84c72d
parent395b176283543b9e771bc4be04b5a3ae382ed778 (diff)
parenta0cc269f90f5ac0e6f95e337009e26b144090650 (diff)
downloadpyramid-86d7fc134f481ddc36a36af90ff169bb03471851.tar.gz
pyramid-86d7fc134f481ddc36a36af90ff169bb03471851.tar.bz2
pyramid-86d7fc134f481ddc36a36af90ff169bb03471851.zip
Merge pull request #2714 from Pylons/bugfix/proutes_re_split
re.split() requires non-empty match
-rw-r--r--pyramid/scripts/proutes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/scripts/proutes.py b/pyramid/scripts/proutes.py
index 19d91cc72..f75810c06 100644
--- a/pyramid/scripts/proutes.py
+++ b/pyramid/scripts/proutes.py
@@ -296,7 +296,7 @@ class PRoutesCommand(object):
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: