make the deprecation warning on get_stats say that its coming from get_stats
This commit is contained in:
parent
ba6f30dad1
commit
9e10012004
|
@ -322,7 +322,7 @@ class Core(component.Component):
|
|||
Deprecated: please use get_session_status()
|
||||
|
||||
"""
|
||||
warnings.warn("Use get_session_status()", DeprecationWarning)
|
||||
warnings.warn("Use get_session_status() instead of get_stats()", DeprecationWarning)
|
||||
stats = self.get_session_status(["payload_download_rate", "payload_upload_rate",
|
||||
"dht_nodes", "has_incoming_connections", "download_rate", "upload_rate"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue