From a691af60e8935be200bf269140557bad6d913ed1 Mon Sep 17 00:00:00 2001 From: inpos Date: Fri, 4 Mar 2016 22:40:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=81=D1=8F=D1=87=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pyrrent2http/pyrrent2http.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index 91941f1..0d9a8d0 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -21,7 +21,6 @@ except Exception, e: else: raise -import libtorrent as lt from random import SystemRandom import time import urlparse, urllib @@ -992,7 +991,7 @@ class Pyrrent2http(object): self.saveResumeData(True) def processSaveResumeDataAlert(self, alert): - logging.info('Saving resume data to: %s', self.config.resumeFile) + logging.info('Saving resume data to: %s' % (self.config.resumeFile)) data = lt.bencode(alert.resume_data) try: with open(self.config.resumeFile, 'wb') as f: @@ -1015,7 +1014,7 @@ class Pyrrent2http(object): return entry = self.session.save_state() data = lt.bencode(entry) - logging.info('Saving session state to: %s', self.config.stateFile) + logging.info('Saving session state to: %s' % (self.config.stateFile,)) try: with open(self.config.stateFile, 'wb') as f: f.write(data)