Commit ef4bdd2d authored by Jim Fulton's avatar Jim Fulton

Fixed bug in thread-safety fixes.

parent 03423594
......@@ -103,7 +103,7 @@ that allows one to simply make a single web request.
The module also provides a command-line interface for calling objects.
"""
__version__='$Revision: 1.31 $'[11:-2]
__version__='$Revision: 1.32 $'[11:-2]
import sys, regex, socket, mimetools
from httplib import HTTP
......@@ -204,8 +204,8 @@ class Function:
not headers.has_key('Authorization')):
headers['Authorization']=(
"Basic %s" %
replace(encodestring('%s:%s' % (self.username,self.password),
'\012','')))
replace(encodestring('%s:%s' % (self.username,self.password)),
'\012',''))
try:
h=HTTP()
......@@ -636,6 +636,4 @@ def main():
if __name__ == "__main__":
#import pdb
#pdb.run('main()')
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment