dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00539
[PATCH 15/33] misc: Add SEEK_CUR.
From: Dave Borowitz <dborowitz@xxxxxxxxxx>
Change-Id: Ibf27977bb529b292bdd1c6ce06e87f961b2d1ee9
---
dulwich/_compat.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dulwich/_compat.py b/dulwich/_compat.py
index 403e068..c12badc 100644
--- a/dulwich/_compat.py
+++ b/dulwich/_compat.py
@@ -32,8 +32,9 @@ except ImportError:
from cgi import parse_qs
try:
- from os import SEEK_END
+ from os import SEEK_CUR, SEEK_END
except ImportError:
+ SEEK_CUR = 1
SEEK_END = 2
import struct
--
1.7.3.1
References