Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Replace deprecated threading aliases (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored and rathishcholarajan committed Jun 21, 2022
1 parent 1e52e2f commit 5a2e551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qiskit/providers/ibmq/jupyter/dashboard/backend_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def update_backend_info(device_list: wid.VBox,
device_list: Widget showing the devices.
interval: How often to refresh the backend information.
"""
my_thread = threading.currentThread()
my_thread = threading.current_thread()
current_interval = 0
started = False
reservation_interval = 10*60
Expand Down
2 changes: 1 addition & 1 deletion qiskit/providers/ibmq/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,4 @@ def get(self, block: bool = True, timeout: Optional[float] = None) -> Any:
def notify_all(self) -> None:
"""Wake up all threads waiting for items on the queued."""
with self.condition:
self.condition.notifyAll()
self.condition.notify_all()

0 comments on commit 5a2e551

Please sign in to comment.