Merge branch 'master' of deluge-torrent.org:/deluge

This commit is contained in:
Nick Lanham 2011-02-24 12:13:06 +01:00
commit e7096d9509
12 changed files with 4 additions and 21 deletions

View File

@ -40,7 +40,6 @@ import os
import time
import subprocess
import platform
import sys
import chardet
import logging

View File

@ -38,18 +38,10 @@ from deluge._libtorrent import lt
import os
import glob
import base64
import shutil
import logging
import threading
import pkg_resources
import warnings
import tempfile
from twisted.internet import reactor, defer
from twisted.internet.task import LoopingCall
import twisted.web.client
from deluge.httpdownloader import download_file
import deluge.configmanager

View File

@ -37,8 +37,6 @@
"""PluginManager for Core"""
import logging
from twisted.internet import reactor
from twisted.internet.task import LoopingCall
from deluge.event import PluginEnabledEvent, PluginDisabledEvent
import deluge.pluginmanagerbase

View File

@ -38,7 +38,6 @@ import os
import logging
import threading
import pkg_resources
from twisted.internet import reactor
from twisted.internet.task import LoopingCall
from deluge._libtorrent import lt

View File

@ -43,7 +43,7 @@ import logging
import traceback
from twisted.internet.protocol import Factory, Protocol
from twisted.internet import ssl, reactor, defer
from twisted.internet import reactor, defer
from OpenSSL import crypto, SSL
from types import FunctionType

View File

@ -44,7 +44,6 @@ import operator
import logging
import re
from twisted.internet import reactor
from twisted.internet.task import LoopingCall
from deluge._libtorrent import lt
@ -569,7 +568,7 @@ class TorrentManager(component.Component):
# Remove the torrent from deluge's session
try:
del self.torrents[torrent_id]
except KeyError, ValueError:
except (KeyError, ValueError):
return False
# Save the session state

View File

@ -38,7 +38,7 @@ import os
from hashlib import sha1 as sha
from deluge.common import get_path_size
from deluge.bencode import bencode, bdecode
from deluge.bencode import bencode
class InvalidPath(Exception):
"""

View File

@ -63,7 +63,6 @@ __all__ = ['dumps', 'loads']
#
import struct
import string
from threading import Lock
# Default number of bits for serialized floats, either 32 or 64 (also a parameter for dumps()).

View File

@ -35,7 +35,6 @@
import gtk
import pkg_resources
import urlparse
import time
import hashlib
import logging

View File

@ -38,7 +38,6 @@ import pygtk
pygtk.require('2.0')
import gtk
import gtk.glade
import gobject
import logging
import pkg_resources
from urlparse import urlparse

View File

@ -40,7 +40,6 @@ import logging
import os.path
import cPickle
import pkg_resources
import gobject
from itertools import izip
from deluge.ui.client import client

View File

@ -477,7 +477,7 @@ class TorrentView(listview.ListView, component.Component):
return []
return torrent_ids
except ValueError, TypeError:
except (ValueError, TypeError):
return []
def get_torrent_status(self, torrent_id):