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