Show More
@@ -25,7 +25,7 b' import wsgiref.util' | |||
|
25 | 25 | import traceback |
|
26 | 26 | import tempfile |
|
27 | 27 | from itertools import chain |
|
28 |
from |
|
|
28 | from io import StringIO | |
|
29 | 29 | |
|
30 | 30 | import simplejson as json |
|
31 | 31 | import msgpack |
@@ -89,7 +89,7 b' def _int_setting(settings, name, default' | |||
|
89 | 89 | |
|
90 | 90 | def _bool_setting(settings, name, default): |
|
91 | 91 | input_val = settings.get(name, default) |
|
92 |
if isinstance(input_val, |
|
|
92 | if isinstance(input_val, str): | |
|
93 | 93 | input_val = input_val.encode('utf8') |
|
94 | 94 | settings[name] = asbool(input_val) |
|
95 | 95 | return settings[name] |
@@ -209,7 +209,7 b' class VCSViewPredicate(object):' | |||
|
209 | 209 | self.remotes = val |
|
210 | 210 | |
|
211 | 211 | def text(self): |
|
212 | return 'vcs view method = %s' % (self.remotes.keys(),) | |
|
212 | return 'vcs view method = %s' % (list(self.remotes.keys()),) | |
|
213 | 213 | |
|
214 | 214 | phash = text |
|
215 | 215 | |
@@ -497,7 +497,7 b' class HTTPApplication(object):' | |||
|
497 | 497 | except Exception: |
|
498 | 498 | log.exception('Failed to read .ini file for display') |
|
499 | 499 | |
|
500 | environ = os.environ.items() | |
|
500 | environ = list(os.environ.items()) | |
|
501 | 501 | |
|
502 | 502 | resp = { |
|
503 | 503 | 'id': payload.get('id'), |
General Comments 0
You need to be logged in to leave comments.
Login now