On 12/7/19 4:16 PM, Andrew Cooper wrote:
The script is Python 2 specific, and fails with string/binary issues with
Python 3:

   Traceback (most recent call last):
     File "gen-policy.py", line 14, in <module>
       for char in sys.stdin.read():
     File "/usr/lib/python3.5/codecs.py", line 321, in decode
       (result, consumed) = self._buffer_decode(data, self.errors, final)
   UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 0: 
invalid start byte

Fixing the script to be compatible isn't hard, but using python here is
wasteful.  Drop the script entirely, and write a short flask-policy.S instead.

Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

Acked-by: Daniel De Graaf <dgde...@tycho.nsa.gov>

With either .align or .p2align as appropriate for more assemblers.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to