How I can fix it?
return 'loader:\n {}' % ''.join('{}:{}\n'.format(*(key, value) for key, value in slownik.iteritems()))
SyntaxError: invalid syntax
this should be in one line 😉
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Drop the ‘%’, which is the old-style string formatter; drop the generator comprehension, because
iteritemsreturns exactly what you need to do formatting; finally, drop the doubleformat:EDIT: ok, now I see what you want to do.