forked from M-Labs/artiq
1
0
Fork 0

Fix typo.

This commit is contained in:
whitequark 2016-01-26 23:23:35 +00:00
parent 6383253e03
commit 7f9a180946
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ from artiq.coredevice import exceptions
def _render_diagnostic(diagnostic, colored): def _render_diagnostic(diagnostic, colored):
def shorten_path(path): def shorten_path(path):
return path.replace(artiq_dir, "<artiq>") return path.replace(artiq_dir, "<artiq>")
lines = [shorten_path(path) for path in diagnostic.render(colored)] lines = [shorten_path(path) for path in diagnostic.render(colored=colored)]
return "\n".join(lines) return "\n".join(lines)
class _DiagnosticEngine(diagnostic.Engine): class _DiagnosticEngine(diagnostic.Engine):