git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug introduced when porting to py3
[plcapi.git]
/
PLC
/
Faults.py
diff --git
a/PLC/Faults.py
b/PLC/Faults.py
index
1b8bd0d
..
d457031
100644
(file)
--- a/
PLC/Faults.py
+++ b/
PLC/Faults.py
@@
-5,16
+5,15
@@
# Mark Huang <mlhuang@cs.princeton.edu>
#
# Copyright (C) 2004-2006 The Trustees of Princeton University
# Mark Huang <mlhuang@cs.princeton.edu>
#
# Copyright (C) 2004-2006 The Trustees of Princeton University
-# $Id: Faults.py,v 1.2 2006/12/07 09:13:55 thierry Exp $
#
#
-import xmlrpc
lib
+import xmlrpc
.client
-class PLCFault(xmlrpc
lib
.Fault):
+class PLCFault(xmlrpc
.client
.Fault):
def __init__(self, faultCode, faultString, extra = None):
if extra:
faultString += ": " + extra
def __init__(self, faultCode, faultString, extra = None):
if extra:
faultString += ": " + extra
- xmlrpc
lib
.Fault.__init__(self, faultCode, faultString)
+ xmlrpc
.client
.Fault.__init__(self, faultCode, faultString)
class PLCInvalidAPIMethod(PLCFault):
def __init__(self, method, role = None, extra = None):
class PLCInvalidAPIMethod(PLCFault):
def __init__(self, method, role = None, extra = None):