diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-02-10 20:57:12 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2010-02-11 08:36:42 +0100 |
commit | 121e8768e40bc6012ec34d77b22d2c408aee048c (patch) | |
tree | 7fcbf89312ba15aa8b0fbb3a1d0ca34e1e15211a /nephilim/plugins/Filebrowser.py | |
parent | 2da79841f38a6b134db7c0232e7f23071db0314c (diff) |
remove some useless conversions to unicode
Diffstat (limited to 'nephilim/plugins/Filebrowser.py')
-rw-r--r-- | nephilim/plugins/Filebrowser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/plugins/Filebrowser.py b/nephilim/plugins/Filebrowser.py index 7740afe..352eb02 100644 --- a/nephilim/plugins/Filebrowser.py +++ b/nephilim/plugins/Filebrowser.py @@ -88,14 +88,14 @@ class wgFilebrowser(QtGui.QWidget): def selection_copy_to_collection(self): target_paths = [] for index in self.selectedIndexes(): - filepath = unicode(self.model().filePath(index)) + filepath = self.model().filePath(index) self.logger.info('Copying %s to collection.'%filepath) path_base = os.path.basename(filepath) try: if os.path.isdir(filepath): shutil.copytree(filepath, '%s/%s'%(self.plugin.settings.value('MPD/music_dir').toString(), path_base)) else: - shutil.copy(filepath, unicode(self.plugin.settings.value('MPD/music_dir').toString())) + shutil.copy(filepath, self.plugin.settings.value('MPD/music_dir').toString()) target_paths.append(path_base) except (OSError, IOError), e: self.logger.error('Error copying to collection: %s.'%e) |