From 6b3c4beba4135681f0484d41ac096e1599939bd4 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 8 Jun 2013 23:56:33 +0200 Subject: Rework langstat. - Generally improve code and make it compliant to PEP8. - Make it work with Python3 as well. Change-Id: I9e99999c59dc501664c36dd38fcb85fb60d6d9e6 --- utils/common/gitscraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/common/gitscraper.py') diff --git a/utils/common/gitscraper.py b/utils/common/gitscraper.py index 9660acb83a..86d6a980cd 100755 --- a/utils/common/gitscraper.py +++ b/utils/common/gitscraper.py @@ -95,7 +95,7 @@ def get_lstree(repo, start, filterlist=[]): if rf[3] in objects: print("FATAL: key already exists in dict!") return {} - objects[rf[3]] = rf[2] + objects[rf[3].decode()] = rf[2].decode() return objects @@ -172,7 +172,7 @@ def scrape_files(repo, treehash, filelist, dest="", timestamp_files=[]): treeobjects = get_lstree(repo, treehash, filelist) timestamps = {} for obj in treeobjects: - get_object(repo, treeobjects[obj], os.path.join(dest.encode(), obj)) + get_object(repo, treeobjects[obj], os.path.join(dest, obj)) for f in timestamp_files: if obj.find(f) == 0: timestamps[obj] = get_file_timestamp(repo, treehash, obj) -- cgit v1.2.3