mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Rip out all the u"..." literals and calls to unicode().
This commit is contained in:
parent
572dbf8f13
commit
ef87d6ed94
200 changed files with 18074 additions and 18074 deletions
|
|
@ -561,7 +561,7 @@ class Menu:
|
|||
self.menu.AppendMenu('x') # add a dummy string
|
||||
self.items.append((label, shortcut, callback, kind))
|
||||
item = len(self.items)
|
||||
if isinstance(label, unicode):
|
||||
if isinstance(label, str):
|
||||
self.menu.SetMenuItemTextWithCFString(item, label)
|
||||
else:
|
||||
self.menu.SetMenuItemText(item, label)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue