101 |
101 |
102 # It also encode the code back to avoid 'Encoding declaration in |
102 # It also encode the code back to avoid 'Encoding declaration in |
103 # unicode string' exception on Python2 |
103 # unicode string' exception on Python2 |
104 codestring = normalizeCode(codestring) |
104 codestring = normalizeCode(codestring) |
105 |
105 |
|
106 # TODO: check for lines starting with VCS conflict markers |
|
107 # (7 * c for c in "<>=|") and report as 'error' like syntax check |
|
108 |
106 if filename.endswith('.ptl'): |
109 if filename.endswith('.ptl'): |
107 try: |
110 try: |
108 import quixote.ptl_compile |
111 import quixote.ptl_compile |
109 except ImportError: |
112 except ImportError: |
110 return [{'error': (filename, 0, 0, '', |
113 return [{'error': (filename, 0, 0, '', |