Show More
@@ -58,7 +58,7 b' def aslist(obj, sep=None, strip=True):' | |||
|
58 | 58 | :param sep: |
|
59 | 59 | :param strip: |
|
60 | 60 | """ |
|
61 |
if isinstance(obj, |
|
|
61 | if isinstance(obj, str): | |
|
62 | 62 | if obj in ['', ""]: |
|
63 | 63 | return [] |
|
64 | 64 | |
@@ -81,7 +81,7 b' class SettingsMaker(object):' | |||
|
81 | 81 | |
|
82 | 82 | @classmethod |
|
83 | 83 | def _bool_func(cls, input_val): |
|
84 |
if isinstance(input_val, |
|
|
84 | if isinstance(input_val, str): | |
|
85 | 85 | input_val = input_val.encode('utf8') |
|
86 | 86 | return str2bool(input_val) |
|
87 | 87 |
@@ -291,7 +291,7 b' class DiffProcessor(object):' | |||
|
291 | 291 | for chunk in self._diff.chunks(): |
|
292 | 292 | head = chunk.header |
|
293 | 293 | |
|
294 |
diff = |
|
|
294 | diff = map(self._escaper, self.diff_splitter(chunk.diff)) | |
|
295 | 295 | raw_diff = chunk.raw |
|
296 | 296 | limited_diff = False |
|
297 | 297 | exceeds_limit = False |
@@ -403,7 +403,7 b' class DiffProcessor(object):' | |||
|
403 | 403 | 'new_lineno': '', |
|
404 | 404 | 'action': Action.CONTEXT, |
|
405 | 405 | 'line': msg, |
|
406 |
} for _op, msg in stats['ops']. |
|
|
406 | } for _op, msg in stats['ops'].items() | |
|
407 | 407 | if _op not in [MOD_FILENODE]]) |
|
408 | 408 | |
|
409 | 409 | _files.append({ |
@@ -600,7 +600,7 b' class DiffProcessor(object):' | |||
|
600 | 600 | 'new_lineno': '', |
|
601 | 601 | 'action': Action.CONTEXT, |
|
602 | 602 | 'line': msg, |
|
603 |
} for _op, msg in stats['ops']. |
|
|
603 | } for _op, msg in stats['ops'].items() | |
|
604 | 604 | if _op not in [MOD_FILENODE]]) |
|
605 | 605 | |
|
606 | 606 | original_filename = safe_unicode(head['a_path']) |
@@ -27,8 +27,8 b' import threading' | |||
|
27 | 27 | import socket |
|
28 | 28 | import msgpack |
|
29 | 29 | |
|
30 |
from |
|
|
31 |
from |
|
|
30 | from http.server import BaseHTTPRequestHandler | |
|
31 | from socketserver import TCPServer | |
|
32 | 32 | |
|
33 | 33 | import rhodecode |
|
34 | 34 | from rhodecode.lib.exceptions import HTTPLockedRC, HTTPBranchProtected |
General Comments 0
You need to be logged in to leave comments.
Login now