Show More
@@ -168,8 +168,8 b' def check_rhodecode_hook(hook_path):' | |||||
168 | return False |
|
168 | return False | |
169 |
|
169 | |||
170 |
|
170 | |||
171 | def read_hook_content(hook_path): |
|
171 | def read_hook_content(hook_path) -> bytes: | |
172 | content = '' |
|
172 | content = b'' | |
173 | if os.path.isfile(hook_path): |
|
173 | if os.path.isfile(hook_path): | |
174 | with open(hook_path, 'rb') as f: |
|
174 | with open(hook_path, 'rb') as f: | |
175 | content = f.read() |
|
175 | content = f.read() |
@@ -447,7 +447,7 b' class HTTPApplication(object):' | |||||
447 |
|
447 | |||
448 | def status_view(self, request): |
|
448 | def status_view(self, request): | |
449 | import vcsserver |
|
449 | import vcsserver | |
450 | return {'status': 'OK', 'vcsserver_version': vcsserver.__version__, |
|
450 | return {'status': 'OK', 'vcsserver_version': str(vcsserver.__version__), | |
451 | 'pid': os.getpid()} |
|
451 | 'pid': os.getpid()} | |
452 |
|
452 | |||
453 | def service_view(self, request): |
|
453 | def service_view(self, request): |
General Comments 0
You need to be logged in to leave comments.
Login now