git://developer.intra2net.com
/
python-delta-tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
use symbolic constant for errno
[python-delta-tar]
/
deltatar
/
crypto.py
diff --git
a/deltatar/crypto.py
b/deltatar/crypto.py
index
16c50d1
..
25cf8d9
100755
(executable)
--- a/
deltatar/crypto.py
+++ b/
deltatar/crypto.py
@@
-1377,11
+1377,11
@@
def depdtcrypt (mode, secret, ins, outs):
def tell (s):
- """ESPIPE is normal on stdio stream."""
+ """ESPIPE is normal on non-seekable stdio stream."""
try:
return s.tell ()
except OSError as exn:
- if exn.errno == 29:
+ if exn.errno == os.errno.ESPIPE:
return -1
def out (pt, outfile):