diff options
author | John Garland <johnnyg@gmail.com> | 2010-01-14 12:32:04 +0000 |
---|---|---|
committer | John Garland <johnnyg@gmail.com> | 2010-01-14 12:32:04 +0000 |
commit | 1941c5976c8cece631ebc25f9d714a58f162cd6d (patch) | |
tree | 5e4cab80cb218ce630f865b051dcc7e680fe21f0 | |
parent | 4f28ab9a39f83a20b114b8cac608aa2e7e161918 (diff) | |
download | deluge-1941c5976c8cece631ebc25f9d714a58f162cd6d.tar.gz deluge-1941c5976c8cece631ebc25f9d714a58f162cd6d.tar.bz2 deluge-1941c5976c8cece631ebc25f9d714a58f162cd6d.zip |
Fix typo. Remove obselete function.
-rw-r--r-- | deluge/scripts/create_plugin.py | 2 | ||||
-rw-r--r-- | deluge/ui/gtkui/addtorrentdialog.py | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/deluge/scripts/create_plugin.py b/deluge/scripts/create_plugin.py index 820ad8396..c31f14c5d 100644 --- a/deluge/scripts/create_plugin.py +++ b/deluge/scripts/create_plugin.py @@ -289,7 +289,7 @@ Script: %(filename)s The client-side javascript code for the %(name)s plugin. Copyright: - (C) %(author_name)s 2009 <damoxc@gmail.com> + (C) %(author_name)s 2009 <%(author_email)s> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index f672d9ede..8753970bd 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -653,15 +653,6 @@ class AddTorrentDialog(component.Component): d.addCallback(on_download_success) d.addErrback(on_download_fail) - def _download_from_url(self, url): - import urllib - import tempfile - import os.path - tmp_file = os.path.join(tempfile.gettempdir(), url.split("/")[-1]) - filename, headers = urllib.urlretrieve(url, tmp_file) - log.debug("filename: %s", filename) - self.add_from_files([filename]) - def _on_button_hash_clicked(self, widget): log.debug("_on_button_hash_clicked") dialog = self.glade.get_widget("dialog_infohash") |