Formatting, change import style for possible future py3k compatibility.

This commit is contained in:
Kai Huuhko 2013-08-05 01:20:51 +03:00
parent 2e02b43797
commit 681932a0ef
1 changed files with 7 additions and 7 deletions

View File

@ -79,7 +79,7 @@ if dbo:
import mimetypes
import ConfigParser
from ConfigParser import SafeConfigParser
import cPickle
import urllib
import HTMLParser
@ -257,12 +257,12 @@ class Session(lt.session):
self.listen_on(conf.getint("Settings", "listen_low"), conf.getint("Settings", "listen_high"))
def setup_conf(self):
conf = ConfigParser.SafeConfigParser({
"storage_path": os.path.expanduser(os.path.join("~", "Downloads")),
"confirmations": str(False),
"delete_original": str(False),
"listen_low": str(0),
"listen_high": str(0),
conf = SafeConfigParser({
"storage_path": os.path.expanduser(os.path.join("~", "Downloads")),
"confirmations": str(False),
"delete_original": str(False),
"listen_low": str(0),
"listen_high": str(0),
})
conf.read(conf_path)