Apparently python2 has problems with æ ø å.

Patched this particular instance.
Planning a py3 port soon
This commit is contained in:
Christoffer Viken 2017-04-25 14:06:37 +00:00
parent 1c8f03695a
commit 0265757993
1 changed files with 2 additions and 2 deletions

View File

@ -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):