From c2998741463c5a2bc2baf2c029d9a993aa833696 Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Tue, 15 Apr 2014 19:35:06 +0200 Subject: [PATCH] Fix use of color for import error while color module not yet imported. --- pubs/endecoder.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pubs/endecoder.py b/pubs/endecoder.py index 6abcdaf..219919e 100644 --- a/pubs/endecoder.py +++ b/pubs/endecoder.py @@ -9,15 +9,12 @@ except ImportError: try: import bibtexparser as bp except ImportError: - print(color.dye('error', color.error) + - ": you need to install bibterxparser; try running 'pip install " + print("error: you need to install bibterxparser; try running 'pip install " "bibtexparser'.") exit(-1) import yaml -from . import color - def sanitize_citekey(record): record['id'] = record['id'].strip('\n')