From 4a292c3cda337587d2269171fc0484e33f23681f Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: Thu, 2 Jul 2020 22:38:36 -0700 Subject: [PATCH] Revert "pywxrc: fix embedded resources in python 2.7 and 3" This reverts commit 234491058fc5a59084b6054d640ecfc17d3d35c1 now that memoryview works properly on python 2.7. --- wx/tools/pywxrc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/tools/pywxrc.py b/wx/tools/pywxrc.py index 649c0e7c..32c1c8a6 100644 --- a/wx/tools/pywxrc.py +++ b/wx/tools/pywxrc.py @@ -226,7 +226,7 @@ def __init_resources(): """ ADD_FILE_TO_MEMFS = """\ - wx.MemoryFSHandler.AddFile('XRC/%(memoryPath)s/%(filename)s', bytearray(%(filename)s)) + wx.MemoryFSHandler.AddFile('XRC/%(memoryPath)s/%(filename)s', memoryview(%(filename)s)) """ LOAD_RES_MEMFS = """\