From 02657579932ad81f827945f2f24c3cc3ecd91c46 Mon Sep 17 00:00:00 2001 From: Christoffer Viken Date: Tue, 25 Apr 2017 14:06:37 +0000 Subject: [PATCH] =?UTF-8?q?Apparently=20python2=20has=20problems=20with=20?= =?UTF-8?q?=C3=A6=20=C3=B8=20=C3=A5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patched this particular instance. Planning a py3 port soon --- text_interface/addstock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text_interface/addstock.py b/text_interface/addstock.py index 9af8631..5bdd3ad 100644 --- a/text_interface/addstock.py +++ b/text_interface/addstock.py @@ -73,11 +73,11 @@ much money you're due in credits for the purchase when prompted.\n''' print "Users to credit:" for user in self.users: print " %s" % str(user.name) - print "\n{{0:s}}{{1:>{0}s}}".format(Product.name_length-1).format("Product", "Amount") + print u"\n{{0:s}}{{1:>{0}s}}".format(Product.name_length-1).format("Product", "Amount") print (6 + Product.name_length) * '-' if len(self.products): for product in self.products.keys(): - print '{{0:<{0}}}{{1:>6d}}'.format(Product.name_length).format(product.name, self.products[product][0]) + print u'{{0:<{0}}}{{1:>6d}}'.format(Product.name_length).format(product.name, self.products[product][0]) print (6 + Product.name_length) * '-' def add_thing_to_pending(self, thing, amount, price):