summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/Carbon
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 17:25:39 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 17:25:39 (GMT)
commit6dab79535139a36d7e845c1c5f399d7a59d5d630 (patch)
treecda5fbdedbd262cb2f7dba187e8cfeb5a9b47e83 /Lib/plat-mac/Carbon
parent39478e852827a4ca6955151bf004c7a15099a4b1 (diff)
downloadcpython-6dab79535139a36d7e845c1c5f399d7a59d5d630.zip
cpython-6dab79535139a36d7e845c1c5f399d7a59d5d630.tar.gz
cpython-6dab79535139a36d7e845c1c5f399d7a59d5d630.tar.bz2
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/plat-mac/Carbon')
-rw-r--r--Lib/plat-mac/Carbon/AppleEvents.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-mac/Carbon/AppleEvents.py b/Lib/plat-mac/Carbon/AppleEvents.py
index 33ee3b3..ec19d19 100644
--- a/Lib/plat-mac/Carbon/AppleEvents.py
+++ b/Lib/plat-mac/Carbon/AppleEvents.py
@@ -1,6 +1,6 @@
# Generated from 'AEDataModel.h'
-def FOUR_CHAR_CODE(x): return bytes(x)
+def FOUR_CHAR_CODE(x): return x.encode("latin-1")
typeBoolean = FOUR_CHAR_CODE('bool')
typeChar = FOUR_CHAR_CODE('TEXT')
typeSInt16 = FOUR_CHAR_CODE('shor')