Use unicode string to prevent non-ASCII ship names from causing error (#1317)

This commit is contained in:
Ryan Holmes
2017-10-21 22:04:40 -04:00
committed by GitHub
parent b4dfcf53fb
commit 34c692c972
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ class ChangeAmount(ContextMenu):
return srcContext in ("cargoItem", "projectedFit", "fighterItem", "projectedFighter")
def getText(self, itmContext, selection):
return "Change {0} Quantity".format(itmContext)
return u"Change {0} Quantity".format(itmContext)
def activate(self, fullContext, selection, i):
srcContext = fullContext[0]

View File

@@ -25,7 +25,7 @@ class ItemRemove(ContextMenu):
"commandFit")
def getText(self, itmContext, selection):
return "Remove {0}".format(itmContext if itmContext is not None else "Item")
return u"Remove {0}".format(itmContext if itmContext is not None else "Item")
def activate(self, fullContext, selection, i):