On May 5, 2023, at 14:40, Robert Moskowitz <r...@htt-consult.com> wrote:
> 
> A colleague sent me a python script that does asn1 encoding.  It starts with:
> 
> import asn1
> 
> then after a few
> 
> asn1_enc.write(oid, asn1.Numbers.ObjectIdentifier)
> 
> It seems pyasn1 is already installed.  It does not provide asn1_enc.

I am pretty sure this is just old or broken code. According to the 
documentation:

https://python-asn1.readthedocs.io/en/latest/usage.html


… you would just create a new asn1.Encoder() object and use that to write(). 
Perhaps “asn1_enc” is defined that way in the code?

I think this isn’t really a Fedora issue, unless the API changes in F38, in 
which case, it’s time to update the code, or pin your requirements to an older 
version of asn1.


--
Jonathan Billings
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to