Skip to content

Commit

Permalink
gpib: fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed Oct 1, 2020
1 parent ad903dd commit af1f695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyvisa/resources/gpib.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def send_command(self, data: bytes) -> Tuple[int, constants.StatusCode]:
if not isinstance(self, GPIBInterface):
warnings.warn(
FutureWarning(
"`control_atn` is only supported on GPIB::INTFC resources "
"`send_command` is only supported on GPIB::INTFC resources "
"and the methods will be removed in PyVISA 1.12"
)
)
Expand Down Expand Up @@ -109,7 +109,7 @@ def pass_control(
if not isinstance(self, GPIBInterface):
warnings.warn(
FutureWarning(
"`control_atn` is only supported on GPIB::INTFC resources "
"`pass_control` is only supported on GPIB::INTFC resources "
"and the methods will be removed in PyVISA 1.12"
)
)
Expand All @@ -126,7 +126,7 @@ def send_ifc(self) -> constants.StatusCode:
if not isinstance(self, GPIBInterface):
warnings.warn(
FutureWarning(
"`control_atn` is only supported on GPIB::INTFC resources "
"`send_ifc` is only supported on GPIB::INTFC resources "
"and the methods will be removed in PyVISA 1.12"
)
)
Expand Down

0 comments on commit af1f695

Please sign in to comment.