From 662cf88e01c7d2aa91ac9ec985c5c8423f38659a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 26 Nov 2005 20:01:16 +0000 Subject: deal with os level file handles properly git-svn-id: file:///home/lennart/svn/public/sse/trunk@74 5fbabb74-0606-0410-a5e4-b5cc6a42724e --- feed/sse_tar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feed/sse_tar.py b/feed/sse_tar.py index 1b0ff05..3dfe409 100755 --- a/feed/sse_tar.py +++ b/feed/sse_tar.py @@ -14,9 +14,11 @@ def copy_file_to(dst, x): if type(dst) is str: o = file(dst, "w") + elif type(dst) is int: + o = os.open(dst, "w") else: o = dst - + while True: data = x.read(SSE_BLOCK_SIZE) -- cgit