diff --git a/eos/saveddata/fit.py b/eos/saveddata/fit.py index ec50b74eb..d05e3330f 100644 --- a/eos/saveddata/fit.py +++ b/eos/saveddata/fit.py @@ -707,7 +707,7 @@ class Fit(object): value.boosted_fit.__resetDependentCalcs() if targetFit and type == CalcType.PROJECTED: - pyfalog.debug("Calculating projections from {0} to target {1}", repr(self), repr(targetFit)) + pyfalog.debug(u"Calculating projections from {0} to target {1}", repr(self), repr(targetFit)) projectionInfo = self.getProjectionInfo(targetFit.ID) # Start applying any command fits that we may have. diff --git a/gui/builtinContextMenus/commandFits.py b/gui/builtinContextMenus/commandFits.py index 54c80546e..ffcaad6a5 100644 --- a/gui/builtinContextMenus/commandFits.py +++ b/gui/builtinContextMenus/commandFits.py @@ -46,7 +46,7 @@ class CommandFits(ContextMenu): return "Command Fits" def addFit(self, menu, fit, includeShip=False): - label = fit.name if not includeShip else "({}) {}".format(fit.ship.item.name, fit.name) + label = fit.name if not includeShip else u"({}) {}".format(fit.ship.item.name, fit.name) id = ContextMenu.nextID() self.fitMenuItemIds[id] = fit menuItem = wx.MenuItem(menu, id, label) diff --git a/gui/builtinContextMenus/tabbedFits.py b/gui/builtinContextMenus/tabbedFits.py index c0db5973f..30a7bee7a 100644 --- a/gui/builtinContextMenus/tabbedFits.py +++ b/gui/builtinContextMenus/tabbedFits.py @@ -43,7 +43,7 @@ class TabbedFits(ContextMenu): continue fit = sFit.getFit(page.activeFitID, basic=True) id = ContextMenu.nextID() - mitem = wx.MenuItem(rootMenu, id, '{}: {}'.format(fit.ship.item.name, fit.name)) + mitem = wx.MenuItem(rootMenu, id, u"{}: {}".format(fit.ship.item.name, fit.name)) bindmenu.Bind(wx.EVT_MENU, self.handleSelection, mitem) self.fitLookup[id] = fit m.AppendItem(mitem) diff --git a/gui/builtinViews/fittingView.py b/gui/builtinViews/fittingView.py index ea2822d17..e5843954b 100644 --- a/gui/builtinViews/fittingView.py +++ b/gui/builtinViews/fittingView.py @@ -314,7 +314,7 @@ class FittingView(d.Display): fit = sFit.getFit(self.getActiveFit(), basic=True) bitmap = BitmapLoader.getImage("race_%s_small" % fit.ship.item.race, "gui") - text = "%s: %s" % (fit.ship.item.name, fit.name) + text = u"%s: %s" % (fit.ship.item.name, fit.name) pageIndex = self.parent.GetPageIndex(self) if pageIndex is not None: diff --git a/gui/graphFrame.py b/gui/graphFrame.py index 2abeadbab..9c58a32b6 100644 --- a/gui/graphFrame.py +++ b/gui/graphFrame.py @@ -248,8 +248,8 @@ class GraphFrame(wx.Frame): self.subplot.plot(x, y) legend.append(fit.name) except: - pyfalog.warning("Invalid values in '{0}'", fit.name) - self.SetStatusText("Invalid values in '%s'" % fit.name) + pyfalog.warning(u"Invalid values in '{0}'", fit.name) + self.SetStatusText(u"Invalid values in '%s'" % fit.name) self.canvas.draw() return diff --git a/gui/mainFrame.py b/gui/mainFrame.py index ffb6a367b..ff86bc433 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -411,7 +411,7 @@ class MainFrame(wx.Frame, IPortUser): """ Export active fit """ sFit = Fit.getInstance() fit = sFit.getFit(self.getActiveFit()) - defaultFile = "%s - %s.xml" % (fit.ship.item.name, fit.name) if fit else None + defaultFile = u"%s - %s.xml" % (fit.ship.item.name, fit.name) if fit else None dlg = wx.FileDialog(self, "Save Fitting As...", wildcard="EVE XML fitting files (*.xml)|*.xml", diff --git a/service/fit.py b/service/fit.py index 80c844071..d4c58b287 100644 --- a/service/fit.py +++ b/service/fit.py @@ -141,7 +141,7 @@ class Fit(object): except ValueError: ship = es_Citadel(eos.db.getItem(shipID)) fit = FitType(ship) - fit.name = name if name is not None else "New %s" % fit.ship.item.name + fit.name = name if name is not None else u"New %s" % fit.ship.item.name fit.damagePattern = self.pattern fit.targetResists = self.targetResists fit.character = self.character @@ -1174,7 +1174,7 @@ class Fit(object): def recalc(self, fit): start_time = time() - pyfalog.info("=" * 10 + "recalc" + "=" * 10) + pyfalog.info(u"=" * 10 + u"recalc: {0}" + u"=" * 10, fit.name) if fit.factorReload is not self.serviceFittingOptions["useGlobalForceReload"]: fit.factorReload = self.serviceFittingOptions["useGlobalForceReload"] fit.clear() diff --git a/service/port.py b/service/port.py index 718bf41a7..dad55aac9 100644 --- a/service/port.py +++ b/service/port.py @@ -1114,7 +1114,7 @@ class Port(object): also, it's OK to arrange modules randomly? """ offineSuffix = " /OFFLINE" - export = "[%s, %s]\n" % (fit.ship.item.name, fit.name) + export = u"[%s, %s]\n" % (fit.ship.item.name, fit.name) stuff = {} sFit = svcFit.getInstance() for module in fit.modules: