Altering 2 statements from Python 2.6 => 3.2

Νίκος Γκρ33κ nikos.gr33k at gmail.com
Wed Mar 27 21:18:47 CET 2013


Hello folks,

With what do i need to replace:
-----------
print ( "Query Error: ", sys.exc_info()[1].excepinfo()[2] )
---------

and

----------
date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8')
----------
in Python3? because in 2.6 used to work but they dont in Pytho 3

thank you.



More information about the Python-list mailing list