From 286c0f3db6c61fd57782d4c75df907dad0cf09c3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Feb 2013 10:07:45 +0530 Subject: [PATCH] ... --- setup/check.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup/check.py b/setup/check.py index ce46975243..0baec38a50 100644 --- a/setup/check.py +++ b/setup/check.py @@ -95,10 +95,9 @@ class Check(Command): errors = True self.report_errors(w) else: - from calibre.utils.serve_coffee import compile_coffeescript + from calibre.utils.serve_coffee import check_coffeescript try: - with open(f, 'rb') as stream: - compile_coffeescript(stream.read(), f) + check_coffeescript(f) except: errors = True if errors: