Skip to content

Commit 4c37773

Browse files
Replaced print with use of warnings.warn
1 parent 92b5b86 commit 4c37773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/_sycl_platform.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def lsplatform(verbosity=0):
349349
cdef DPCTLSyclPlatformRef PRef = NULL
350350

351351
if not isinstance(verbosity, int):
352-
print(
352+
warnings.warn(
353353
"Illegal verbosity level. Accepted values are 0, 1, or 2. "
354354
"Using the default verbosity level of 0."
355355
)

0 commit comments

Comments
 (0)