diff options
| author | Michael Merickel <michael@merickel.org> | 2019-01-28 23:12:20 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2019-01-28 23:40:17 -0600 |
| commit | a5e0dd71d603573b2e3c366a60729caa725c9ac4 (patch) | |
| tree | b697bd00a90c32d3d101d5fde015259afcf87541 /src | |
| parent | 8200b89a060a36396185e519999e27b43644b51f (diff) | |
| download | pyramid-a5e0dd71d603573b2e3c366a60729caa725c9ac4.tar.gz pyramid-a5e0dd71d603573b2e3c366a60729caa725c9ac4.tar.bz2 pyramid-a5e0dd71d603573b2e3c366a60729caa725c9ac4.zip | |
stop sorting discriminators in exception output
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/exceptions.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/pyramid/exceptions.py b/src/pyramid/exceptions.py index 9a7054731..92a0098e0 100644 --- a/src/pyramid/exceptions.py +++ b/src/pyramid/exceptions.py @@ -3,8 +3,6 @@ from pyramid.httpexceptions import HTTPBadRequest, HTTPNotFound, HTTPForbidden NotFound = HTTPNotFound # bw compat Forbidden = HTTPForbidden # bw compat -CR = '\n' - class BadCSRFOrigin(HTTPBadRequest): """ @@ -92,14 +90,13 @@ class ConfigurationConflictError(ConfigurationError): def __str__(self): r = ["Conflicting configuration actions"] - items = sorted(self._conflicts.items()) - for discriminator, infos in items: + for discriminator, infos in self._conflicts.items(): r.append(" For: %s" % (discriminator,)) for info in infos: - for line in str(info).rstrip().split(CR): + for line in str(info).rstrip().split('\n'): r.append(" " + line) - return CR.join(r) + return '\n'.join(r) class ConfigurationExecutionError(ConfigurationError): |
