Νίκος Γκρ33κ wrote:

> Hello this is the following snippet that is causing me the error i mention
> in the Subject:

> print( "<tr><td><center><a href='http://superhost.gr/?show=log&page=%s'><font 
> color=tomato size=5> %s </a></td>" ) % (url, url)

Hint (Python 3):

>>> print("a=%s, b=%s") % (1, 2)
a=%s, b=%s
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'

>>> print("a=%s, b=%s" % (1, 2))
a=1, b=2


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to