Skip to content

Commit b486ec6

Browse files
bugfix: fixed import errors
1 parent fb96c6e commit b486ec6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

oclfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def getLocalAddress(self) :
6767
def getPort(self) :
6868
return self.port
6969

70-
def getLocalPort() :
70+
def getLocalPort(self) :
7171
return self.port
7272

7373
def compareTo(self,f) :
@@ -344,7 +344,7 @@ def readN(self,n) :
344344
self.position = self.position + 1
345345
res.append(s)
346346
ind = ind + 1
347-
except Error :
347+
except Exception as e :
348348
self.eof = True
349349
self.lastRead = None
350350
break

oclprocess.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import threading
22
import time
3+
import ocl
4+
import oclfile
35

46
class OclProcess:
57
oclprocess_instances = []
@@ -52,7 +54,7 @@ def setName(self,nme) :
5254
self.name = nme
5355
if self.actualThread != None :
5456
self.actualThread.name = nme
55-
return result
57+
5658

5759
def getPriority(self) :
5860
return self.priority
@@ -89,7 +91,7 @@ def interrupt(self) :
8991

9092
def killOclProcess(oclprocess_x) :
9193
oclprocess_instances = ocl.excludingSet(oclprocess_instances, oclprocess_x)
92-
free(oclprocess_x)
94+
oclfile.free(oclprocess_x)
9395

9496
def createOclProcess():
9597
oclprocess = OclProcess()

0 commit comments

Comments
 (0)