web/hosts/issues graph.py,1.5,1.6

Nick Lewycky <[email protected]>
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/web/hosts/issues
In directory purcel:/tmp/cvs-serv8749

Modified Files:
	graph.py 
Log Message:
Stylistic fixes.
Thanks to code review from njs. Thanks njs!


Index: graph.py
===================================================================
RCS file: /cvs/fresco/web/hosts/issues/graph.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- graph.py	24 Jan 2003 15:33:19 -0000	1.5
+++ graph.py	25 Jan 2003 04:17:33 -0000	1.6
@@ -132,8 +132,8 @@
             write_depend(file, type, id, type, depend)
             visit(type, depend, 0)
 
-if (not (output == 'png' or output == 'svg' or output == 'gif' or output == 'cmap' or output == 'mif' or output == 'ps' or output == 'ps2')):
-    print 'Status: 500 Internal Server Error\n'
+if not output in ['png', 'svg', 'gif', 'cmap', 'mif', 'ps', 'ps2']:
+    print 'Content-type: text/html\n'
     print '<html><head><title>graph</title></head><body>Bad parameter to script.</body></html>'
     sys.exit(0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.