We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85d4a5a commit 086dda0Copy full SHA for 086dda0
av/error.pyx
@@ -1,4 +1,5 @@
1
cimport libav as lib
2
+from libc.stdio cimport fprintf, stderr
3
from libc.stdlib cimport free, malloc
4
5
from av.logging cimport get_last_error
@@ -367,7 +368,7 @@ cdef int stash_exception(exc_info=None):
367
368
369
existing = getattr(_local, "exc_info", None)
370
if existing is not None:
- print >> sys.stderr, "PyAV library exception being dropped:"
371
+ fprintf(stderr, "PyAV library exception being dropped:\n")
372
traceback.print_exception(*existing)
373
_err_count -= 1 # Balance out the +=1 that is coming.
374
0 commit comments