import socket
import sys
import os
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM,0)
if(sock < 0):
pass
class EmcException:
def operator(self,n):
pass
class EmcSystemException( EmcException):
def __init__(self,m):
pass
def emcSocket(self,family,t,protocol):
# create socket
socketfd = socket(family, t, protocol);
if (socketfd < 0): # check status value
raise EmcSystemException("emcSocket");
return socketfd;
def __init__(self,cp):
self.lengthM = len(cp)
self.cpM = cp
class EmcLog:
def __init__(self,filename):
pass
def message(self,EmcString):
pass
def __del__(self):
if uncaught_exception():
self.flush()
def flush(self):
if ( not uncaught_exception()):
raise EmcSystemException("EmcLog::flush()")
class EmcException:
def __init__(self,m):
maxSizeM = 100
actualLength = len(m);
self.lengthM = min(maxSizeM,actualLength);
self.messageM = message
def f():
ip = 1
g(ip)
def g(i):
raise Exception(i)
def f():
ip = 1
g(ip)
def g(i):
raise Exception(i)
def f():
ip = 1
g(ip)
class EmcStack:
defaultSizeM = 100
def __init__(self,size = 100):
pass
def __del__(self):
pass
def operator(self,s):
pass
def empty(self):
pass
def top(self):
pass
def push(self,i):
pass
def pop(self):
pass
class EmcException:
def __init__(self,m):
pass
def operator(self,o,EmcException):
pass
def printOn(self,o):
print self.messageM;
try:
socketfd = emcSocket(AF_UNIX, SOCK_STREAM, 0);
except Exception,e:
print e
def at(s,pos):
if (pos > len(s)):
raise Exception;