Commit 3241978a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

follow API changes of psutil-3.0.0.

parent 1702db02
......@@ -87,7 +87,7 @@ class Application(object):
try:
for connection in process.connections():
if connection.status == 'LISTEN' and \
connection.local_address[1] == self.port:
connection.laddr[1] == self.port:
return True
except AccessDenied:
return False
......
......@@ -120,7 +120,7 @@ class OpenOffice(Application):
if process.exe() == join(self.office_binary_path, self._bin_soffice):
for connection in process.connections():
if connection.status == "LISTEN" and \
connection.local_address[1] == self.port:
connection.laddr[1] == self.port:
process.terminate()
except AccessDenied, e:
pass
......
......@@ -14,7 +14,7 @@ install_requires = [
'PasteDeploy',
'PasteScript',
'WSGIUtils',
'psutil>=2.0.0',
'psutil>=3.0.0',
'lxml',
'python-magic',
'argparse',
......
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