Skip to content
Snippets Groups Projects
Commit 052fa245 authored by inso's avatar inso
Browse files

Remove QtNetwork

parent 3709042a
No related branches found
No related tags found
No related merge requests found
from PyQt5.QtCore import QObject, pyqtSlot
from PyQt5.QtNetwork import QNetworkReply
from ucoinpy.api import bma
from .....tools.exceptions import NoPeerAvailable
from ..... import __version__
......@@ -259,7 +258,7 @@ class BmaAccess(QObject):
:param class request: A bma request class calling for data
:param dict req_args: Arguments to pass to the request constructor
:param dict get_args: Arguments to pass to the request __get__ method
:return: The returned data if cached = True else return the QNetworkReply
:return: The returned data
"""
nodes = self.filter_nodes(request, self._network.synced_nodes)
if len(nodes) > 0:
......@@ -293,7 +292,7 @@ class BmaAccess(QObject):
:param req_args: Arguments to pass to the request constructor
:param post_args: Arguments to pass to the request __post__ method
:return: All nodes replies
:rtype: tuple of QNetworkReply
:rtype: tuple of aiohttp replies
.. note:: If one node accept the requests (returns 200),
the broadcast should be considered accepted by the network.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment