Skip to content

Commit

Permalink
python3: replace thread module with threading
Browse files Browse the repository at this point in the history
partial: vmware#55
  • Loading branch information
kevin1024 authored and hartsock committed Jul 28, 2014
1 parent de17170 commit a96438c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pyVmomi/SoapAdapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
import os
import socket
import subprocess
if PY2:
from thread import allocate_lock
if PY3:
from _thread import allocate_lock
import time

from xml.parsers.expat import ParserCreate
Expand Down Expand Up @@ -1177,7 +1173,7 @@ def __init__(self, host='localhost', port=443, ns=None, path='/sdk',
self.poolSize = poolSize
self.pool = []
self.connectionPoolTimeout = connectionPoolTimeout
self.lock = allocate_lock()
self.lock = threading.Lock()
self.schemeArgs = {}
if certKeyFile:
self.schemeArgs['key_file'] = certKeyFile
Expand Down

0 comments on commit a96438c

Please sign in to comment.