From 6c1faef799095f3990e9970bc2cb10aa0221cf9c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 12 Jun 2010 17:20:43 +0200 Subject: Removed odb from project, it is now used as a submodule named gitdb, which was added instead Adjusted all imports to deal with the changed package names --- lib/git/odb/utils.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 lib/git/odb/utils.py (limited to 'lib/git/odb/utils.py') diff --git a/lib/git/odb/utils.py b/lib/git/odb/utils.py deleted file mode 100644 index 6863e97b..00000000 --- a/lib/git/odb/utils.py +++ /dev/null @@ -1,38 +0,0 @@ -import binascii -import os -import errno - -#{ Routines - -hex_to_bin = binascii.a2b_hex -bin_to_hex = binascii.b2a_hex - -def to_hex_sha(sha): - """:return: hexified version of sha""" - if len(sha) == 40: - return sha - return bin_to_hex(sha) - -def to_bin_sha(sha): - if len(sha) == 20: - return sha - return hex_to_bin(sha) - -# errors -ENOENT = errno.ENOENT - -# os shortcuts -exists = os.path.exists -mkdir = os.mkdir -isdir = os.path.isdir -rename = os.rename -dirname = os.path.dirname -join = os.path.join -read = os.read -write = os.write -close = os.close - - -#} END Routines - - -- cgit v1.2.1