Permalink
Browse files

Fixed a typo in variable namings

  • Loading branch information...
1 parent bc2b306 commit fc1bbd875bc1730f7e647de48e2ed3211ecfde72 @rajarshi committed Jan 4, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 chemspace/chemspace.py
View
@@ -78,22 +78,22 @@ def _generateOutput(requestedContentTypes, pcs):
if requestedType == 'text/plain':
ctype = 'text/plain'
textarray = []
- for row in scores2d:
+ for row in pcs:
textarray.append(' '.join([str(x) for x in row]))
textarray = '\n'.join(textarray)
page = textarray
break
elif requestedType == 'text/html':
ctype = 'text/html'
textarray = []
- for row in scores2d:
+ for row in pcs:
textarray.append('<tr>'+''.join([ '<td>'+str(x)+'</td>\n' for x in row ])+'</tr>\n')
page = '<html><body><table>'+'\n'.join(textarray)+'</table></body></html>'
break
elif requestedType == 'application/json':
import jsonlib
ctype = 'application/json'
- page = jsonlib.write(scores2d.tolist())
+ page = jsonlib.write(pcs.tolist())
break
return ctype, page

0 comments on commit fc1bbd8

Please sign in to comment.