LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File noxspellserver-deprecated.patch of Package noxspellserver (Project home:lrupp)

Index: NoxSpellServer/nox_server.py
===================================================================
--- NoxSpellServer.orig/nox_server.py
+++ NoxSpellServer/nox_server.py
@@ -7,7 +7,7 @@ from cherrypy2 import _cpwsgiserver
 import time
 import socket
 
-import popen2
+import subprocess
 from threading import Condition
 
 class Logger:
@@ -53,7 +53,7 @@ Logger = Logger()
 
 class aspell:
     def __init__(self, lang="en"):
-        self._f = popen2.Popen3("aspell -a -d %s --encoding=utf-8 --sug-mode=normal" % lang)
+        self._f = subprocess.Popen("aspell -a -d %s --encoding=utf-8 --sug-mode=normal" % lang)
         self._f.fromchild.readline() #skip the credit line
 
     def checkLine(self, line, add_to_offset=0):