debian/patches/drop_deprecation_warnings.patch: deleted, it was a backport from upstream git repository.
Cristian Greco
13 years ago
0 | Description: Get rid of deprecation warnings | |
1 | This will remove deprecation warnings, but not deprecated functions! | |
2 | Deprecated functions are removed in favour of get_session_status() in upstream | |
3 | commit ec9564d0c136c27110bbebc8b84d0a230f963b8. Given that the changeset is | |
4 | too big, and upon suggestion by upstream author, we are simply removing the | |
5 | deprecation warnings. | |
6 | Forwarded: not-needed | |
7 | Origin: backport, http://git.deluge-torrent.org/deluge/commit/?id=ec9564d0c136c | |
8 | Bug: http://dev.deluge-torrent.org/ticket/496 | |
9 | Bug-Debian: http://bugs.debian.org/575910 | |
10 | Author: Cristian Greco <cristian@regolo.cc> | |
11 | ||
12 | --- a/deluge/core/core.py | |
13 | +++ b/deluge/core/core.py | |
14 | @@ -493,19 +493,16 @@ | |
15 | @export | |
16 | def get_dht_nodes(self): | |
17 | """Returns the number of dht nodes""" | |
18 | - warnings.warn("Use get_session_status().", DeprecationWarning) | |
19 | return self.session.status().dht_nodes | |
20 | ||
21 | @export | |
22 | def get_download_rate(self): | |
23 | """Returns the payload download rate""" | |
24 | - warnings.warn("Use get_session_status().", DeprecationWarning) | |
25 | return self.session.status().payload_download_rate | |
26 | ||
27 | @export | |
28 | def get_upload_rate(self): | |
29 | """Returns the payload upload rate""" | |
30 | - warnings.warn("Use get_session_status().", DeprecationWarning) | |
31 | return self.session.status().payload_upload_rate | |
32 | ||
33 | @export | |
34 | @@ -608,7 +605,6 @@ | |
35 | @export | |
36 | def get_health(self): | |
37 | """Returns True if we have established incoming connections""" | |
38 | - warnings.warn("Use get_session_status().", DeprecationWarning) | |
39 | return self.session.status().has_incoming_connections | |
40 | ||
41 | @export |