small fixes and translation

This commit is contained in:
maccesch
2011-09-01 13:01:03 +02:00
parent e2407151ab
commit dcec449939
7 changed files with 30 additions and 21 deletions

View File

@ -41,17 +41,17 @@ Usage example::
# or you can call api.setAPIKey()
#
if api.key is None:
print "No 'apikey.txt' file."
print >> sys.stderr, "No 'apikey.txt' file."
elif not api.verify_key():
print "The API key is invalid."
print >> sys.stderr, "The API key is invalid."
else:
# data should be a dictionary of values
# They can all be filled in with defaults
# from a CGI environment
if api.comment_check(comment, data):
print 'This comment is spam.'
print >> sys.stderr, 'This comment is spam.'
else:
print 'This comment is ham.'
print >> sys.stderr, 'This comment is ham.'
"""