We will add support for other platforms, if others care.
def trace(self, fileno: int) -> None:
if sys.platform != "linux":
- raise e.NotSupportedError("only supported on Linux")
+ raise e.NotSupportedError("currently only supported on Linux")
stream = impl.fdopen(fileno, b"w")
impl.PQtrace(self._pgconn_ptr, stream)
def trace(self, fileno: int) -> None:
if sys.platform != "linux":
- raise e.NotSupportedError("only supported on Linux")
+ raise e.NotSupportedError("currently only supported on Linux")
stream = fdopen(fileno, b"w")
libpq.PQtrace(self._pgconn_ptr, stream)