All pastes #29874 Raw Edit

Something

public text v1 · immutable
#29874 ·published 2005-11-21 04:31 UTC
rendered paste body
#! /usr/bin/python

class httpClass:
	def httpheaders():
		"return a list of HTTP protocol header strings"
		return ["Content-Type: text/html", "Server: myHTPP/1.0"]
httpC = httpClass()
print httpC.httpheaders()

Error I get:

rixth@bear:~$ python python.py
Traceback (most recent call last):
  File "python.py", line 8, in ?
    print httpC.httpheaders()
TypeError: httpheaders() takes no arguments (1 given)
rixth@bear:~$

But the brackets are blank, so how is an argument being given?