abhiTronix/deffcode

[BUG] Fix Context Manager methods in FFdecoder API

Closed this issue · 0 comments

Brief Description

As mentioned in PEP 343, Context managers provide __enter__() and __exit__() methods that are invoked on entry to and exit from the body of the with statement. Currently, these context managers methods are completely unusable in FFdecoder API, and need rework. Plus related docs and unittest are missing .

Acknowledgment

Current Environment

  • My DeFFcode version: v0.2.3
  • My Python version: all
  • My Pip version: latest
  • My Operating System and its version: all

Expected Behavior

Must be able to use context manager methods using ‘with’ and ‘as’ keywords in FFdecoder API

Actual Behavior

Unusable and throws NameError

Miscellaneous

https://peps.python.org/pep-0343/