Replace decode with decode_string

This commit is contained in:
Calum Lind 2013-02-17 16:19:13 +00:00
parent 93d4e345b8
commit 1d9b550e35
1 changed files with 1 additions and 1 deletions

View File

@ -1081,7 +1081,7 @@ class TorrentManager(component.Component):
def on_alert_file_renamed(self, alert): def on_alert_file_renamed(self, alert):
log.debug("on_alert_file_renamed") log.debug("on_alert_file_renamed")
log.debug("index: %s name: %s", alert.index, alert.name.decode("utf8")) log.debug("index: %s name: %s", alert.index, decode_string(alert.name))
try: try:
torrent = self.torrents[str(alert.handle.info_hash())] torrent = self.torrents[str(alert.handle.info_hash())]
torrent_id = str(alert.handle.info_hash()) torrent_id = str(alert.handle.info_hash())