Browse Source

misc: Add SEEK_CUR.

Change-Id: Ibf27977bb529b292bdd1c6ce06e87f961b2d1ee9
Dave Borowitz 13 years ago
parent
commit
eb4f4d3a63
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dulwich/_compat.py

+ 2 - 1
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