From af5020c6a48b582f54bb74c473c5bbb6af506150 Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Thu, 13 Jun 2013 16:58:56 +0200 Subject: [PATCH] FIX bugs introduced by change in color handling. --- papers/color.py | 2 +- papers/commands/list_cmd.py | 1 + papers/pretty.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/papers/color.py b/papers/color.py index 90e91b5..5c2a078 100644 --- a/papers/color.py +++ b/papers/color.py @@ -36,4 +36,4 @@ def setup(enable = True): if enable: dye = _dye else: - dye = _nodye \ No newline at end of file + dye = _nodye diff --git a/papers/commands/list_cmd.py b/papers/commands/list_cmd.py index b188226..017d04b 100644 --- a/papers/commands/list_cmd.py +++ b/papers/commands/list_cmd.py @@ -1,5 +1,6 @@ from .. import pretty from .. import repo +from .. import color def parser(subparsers, config): diff --git a/papers/pretty.py b/papers/pretty.py index edaaafd..7fa7e83 100644 --- a/papers/pretty.py +++ b/papers/pretty.py @@ -26,7 +26,7 @@ def short_authors(bibentry): return '' -def bib_oneliner(bibentry, color=True): +def bib_oneliner(bibentry): authors = short_authors(bibentry) title = bibtex_purify(bibentry.fields['title']) year = bibtex_purify(bibentry.fields.get('year', ''))