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. ...@@ -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. 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 import sys, regex, socket, mimetools
from httplib import HTTP from httplib import HTTP
...@@ -204,8 +204,8 @@ class Function: ...@@ -204,8 +204,8 @@ class Function:
not headers.has_key('Authorization')): not headers.has_key('Authorization')):
headers['Authorization']=( headers['Authorization']=(
"Basic %s" % "Basic %s" %
replace(encodestring('%s:%s' % (self.username,self.password), replace(encodestring('%s:%s' % (self.username,self.password)),
'\012',''))) '\012',''))
try: try:
h=HTTP() h=HTTP()
...@@ -636,6 +636,4 @@ def main(): ...@@ -636,6 +636,4 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
#import pdb
#pdb.run('main()')
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