orca r4456 - in trunk: . src/orca
- From: wwalker svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4456 - in trunk: . src/orca
- Date: Thu, 22 Jan 2009 15:10:41 +0000 (UTC)
Author: wwalker
Date: Thu Jan 22 15:10:40 2009
New Revision: 4456
URL: http://svn.gnome.org/viewvc/orca?rev=4456&view=rev
Log:
Pylinting.
Modified:
trunk/ChangeLog
trunk/src/orca/espeechfactory.py
Modified: trunk/src/orca/espeechfactory.py
==============================================================================
--- trunk/src/orca/espeechfactory.py (original)
+++ trunk/src/orca/espeechfactory.py Thu Jan 22 15:10:40 2009
@@ -130,7 +130,7 @@
from time import sleep
sleep(1)
for server in SpeechServer.__activeServers.values():
- if not server._process or server._process.poll() is not None:
+ if not server.process or server.process.poll() is not None:
server.shutdown()
return SpeechServer.__activeServers.values()
@@ -169,8 +169,8 @@
speechserver.SpeechServer.__init__(self)
self._engine = engine
- self._process = None
self._output = None
+ self.process = None
e = __import__(_getcodes(engine),
globals(),
@@ -195,7 +195,7 @@
proc.stderr.close()
proc.stdout = proc.stderr = None
self._output = proc.stdin
- self._process = proc
+ self.process = proc
self._speechChunk = re.compile(self._speechChunkRegexp, re.DOTALL)
self._settings = {}
@@ -373,15 +373,15 @@
def shutdown(self):
"""Shuts down the speech engine."""
- if self._process is None:
+ if self.process is None:
return
- if self._process.poll() is None:
+ if self.process.poll() is None:
from signal import SIGKILL
- os.kill(self._process.pid, SIGKILL)
- self._process.wait()
+ os.kill(self.process.pid, SIGKILL)
+ self.process.wait()
self._output.close()
- self._output = self._process = None
+ self._output = self.process = None
if self is SpeechServer.__activeServers.get(self._engine, None):
del SpeechServer.__activeServers[self._engine]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]