diff --git a/rhodecode/lib/__init__.py b/rhodecode/lib/__init__.py --- a/rhodecode/lib/__init__.py +++ b/rhodecode/lib/__init__.py @@ -25,7 +25,7 @@ import os import re -from vcs.utils.lazy import LazyProperty +from rhodecode.lib.vcs.utils.lazy import LazyProperty def __get_lem(): @@ -82,7 +82,7 @@ ALL_READMES = [ # extension together with weights to search lower is first RST_EXTS = [ ('', 0), ('.rst', 1), ('.rest', 1), - ('.RST', 2) , ('.REST', 2), + ('.RST', 2), ('.REST', 2), ('.txt', 3), ('.TXT', 3) ] @@ -138,7 +138,6 @@ def convert_line_endings(line, mode): line = replace(line, '\r\n', '\r') line = replace(line, '\n', '\r') elif mode == 2: - import re line = re.sub("\r(?!\n)|(?