From b85732010573a3271114783349848bced9b4a3a0 Mon Sep 17 00:00:00 2001
From: Peter Kessen
Date: Fri, 28 Aug 2015 08:47:25 +0200
Subject: [PATCH] fixed tox style suggestions
also following the "no contrived examples" rule by using
beatles as artist in example
---
beets/ui/__init__.py | 2 +-
beets/ui/commands.py | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py
index 5a56105f2..35c1b1957 100644
--- a/beets/ui/__init__.py
+++ b/beets/ui/__init__.py
@@ -789,7 +789,7 @@ class CommonOptionsParser(optparse.OptionParser, object):
def add_help_text(self, text):
"""Add a custom help text below the usage line to give extra hints
"""
- if self._added_help == False:
+ if self._added_help is False:
self.usage = self.usage + "\n"
self._added_help = True
self.usage = self.usage + "\n"
diff --git a/beets/ui/commands.py b/beets/ui/commands.py
index ed5097b73..e87a1b18d 100644
--- a/beets/ui/commands.py
+++ b/beets/ui/commands.py
@@ -974,7 +974,9 @@ def list_func(lib, opts, args):
list_cmd = ui.Subcommand('list', help='query the library', aliases=('ls',))
list_cmd.parser.add_help_text('query the library')
-list_cmd.parser.add_help_text('Example usage: %prog -f \'$album: $title\' artist:foo')
+list_cmd.parser.add_help_text(
+ 'Example usage: %prog -f \'$album: $title\' artist:beatles'
+)
list_cmd.parser.add_all_common_options()
list_cmd.func = list_func
default_commands.append(list_cmd)