From b3b67411563acc342533c66df792966e8ec0d346 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 11 Jun 2010 14:56:14 +0100 Subject: [PATCH] Fix regression in book equality test in usbms --- src/calibre/devices/usbms/books.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/usbms/books.py b/src/calibre/devices/usbms/books.py index d065d0f47a..be154f35c1 100644 --- a/src/calibre/devices/usbms/books.py +++ b/src/calibre/devices/usbms/books.py @@ -47,7 +47,7 @@ class Book(MetaInformation): def __eq__(self, other): # use lpath because the prefix can change, changing path - return self.path == getattr(other, 'lpath', None) + return self.lpath == getattr(other, 'lpath', None) @dynamic_property def db_id(self):