mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-08 05:58:43 +02:00
Since an ar archive can contain arbitary filenames (that is a filename can be an invalid utf-8 encoding (for instance, "foo\xff\xffbar")), the ar module provides a bytes only API. A user can decode filenames as she wishes. Note: if a "fn" parameter is passed to Ar.__init__ it should be a bytes (a str is also ok, but then be aware that an ArError's file attribute might be a str or a bytes).