[Python-modules-commits] [paste] 01/03: Use correct variable when building message for exception

Ondřej Nový onovy-guest at moszumanska.debian.org
Thu Mar 10 18:25:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

onovy-guest pushed a commit to branch master
in repository paste.

commit fed2232ccb8d655a9c7dc8a9dcde80b66a5421bd
Author: Ondřej Nový <novy at ondrej.org>
Date:   Thu Mar 10 19:22:33 2016 +0100

    Use correct variable when building message for exception
    
    Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
    Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695253
    Forwarded: https://bitbucket.org/ianb/paste/pull-requests/36/use-correct-variable-when-building-message/diff
---
 paste/fixture.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/paste/fixture.py b/paste/fixture.py
index 363f119..8cff72f 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -852,7 +852,7 @@ class TestResponse(object):
                 print("Actual response (has %r)" % no_s, file=sys.stderr)
                 print(self, file=sys.stderr)
                 raise IndexError(
-                    "Body contains string %r" % s)
+                    "Body contains string %r" % no_s)
 
     def __repr__(self):
         body = self.body

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/paste.git



More information about the Python-modules-commits mailing list