projects
/
invirt/packages/python-afs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't leave out README.dev when generating a manifest file.
[invirt/packages/python-afs.git]
/
afs
/
afs.pyx
diff --git
a/afs/afs.pyx
b/afs/afs.pyx
index
a54a1c9
..
8f51c16
100644
(file)
--- a/
afs/afs.pyx
+++ b/
afs/afs.pyx
@@
-7,18
+7,17
@@
import sys
cdef int _init = 0
class AFSException(Exception):
cdef int _init = 0
class AFSException(Exception):
- def __init__(self, errno, message):
+ def __init__(self, errno):
self.errno = errno
self.strerror = afs_error_message(errno)
self.errno = errno
self.strerror = afs_error_message(errno)
- self.message = message
def __repr__(self):
def __repr__(self):
- return "AFSException(%s, %s)" % (self.errno, self.message)
+ return "AFSException(%s)" % (self.errno)
def __str__(self):
def __str__(self):
- return "[%s] (%s) while %s" % (self.errno, self.strerror, self.message)
+ return "[%s] %s" % (self.errno, self.strerror)
-def pyafs_error(code, msg):
+def pyafs_error(code):
if not _init:
initialize_ACFG_error_table()
initialize_KTC_error_table()
if not _init:
initialize_ACFG_error_table()
initialize_KTC_error_table()
@@
-29,4
+28,4
@@
def pyafs_error(code, msg):
_init = 1
if code != 0:
_init = 1
if code != 0:
- raise AFSException(code, msg)
+ raise AFSException(code)