From 495eac30d8889fd80b7ec1aa6e466b41acd701fa Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 13 May 2010 07:24:52 -0400 Subject: [PATCH] Fix typos in hooke.playlist.FilePlaylist.set_path --- hooke/playlist.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hooke/playlist.py b/hooke/playlist.py index 60475ac..7e76c93 100644 --- a/hooke/playlist.py +++ b/hooke/playlist.py @@ -80,10 +80,11 @@ class FilePlaylist (Playlist): self._digest = None def set_path(self, path): - if not path.endswith('.hkp'): - path += '.hkp' - if name == None and path != None: - name = os.path.basename(path) + if path != None: + if not path.endswith('.hkp'): + path += '.hkp' + if self.name == None: + name = os.path.basename(path) def is_saved(self): return self.digest() == self._digest -- 2.26.2