Gentoo Archives: gentoo-commits

From: "André Erdmann" <dywi@×××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/util/
Date: Thu, 01 Aug 2013 12:44:59
Message-Id: 1375360274.8a86ced14011b1c5581566551847efe21e5df932.dywi@gentoo
1 commit: 8a86ced14011b1c5581566551847efe21e5df932
2 Author: André Erdmann <dywi <AT> mailerd <DOT> de>
3 AuthorDate: Thu Aug 1 12:31:14 2013 +0000
4 Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
5 CommitDate: Thu Aug 1 12:31:14 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=8a86ced1
7
8 roverlay/util/hashpool: Hashjob -> HashJob
9
10 ---
11 roverlay/util/hashpool.py | 10 ++++++++--
12 1 file changed, 8 insertions(+), 2 deletions(-)
13
14 diff --git a/roverlay/util/hashpool.py b/roverlay/util/hashpool.py
15 index 921a968..c3e1a79 100644
16 --- a/roverlay/util/hashpool.py
17 +++ b/roverlay/util/hashpool.py
18 @@ -24,12 +24,16 @@ def _calculate_hashes ( hash_job, hashes ):
19 )
20 # --- end of _calculate_hashes (...) ---
21
22 -class Hashjob ( object ):
23 +
24 +class HashJob ( object ):
25 def __init__ ( self, filepath, hashdict=None ):
26 + super ( HashJob ).__init__()
27 self.filepath = filepath
28 self.hashdict = dict() if hashdict is None else hashdict
29 # --- end of __init__ (...) ---
30
31 +# --- end of HashJob ---
32 +
33
34 class HashPool ( object ):
35 def __init__ ( self, hashes, max_workers ):
36 @@ -40,7 +44,7 @@ class HashPool ( object ):
37 # --- end of __init__ (...) ---
38
39 def add ( self, backref, filepath, hashdict=None ):
40 - self._jobs [backref] = Hashjob ( filepath, hashdict )
41 + self._jobs [backref] = HashJob ( filepath, hashdict )
42 # --- end of add (...) ---
43
44 def run ( self ):
45 @@ -64,3 +68,5 @@ class HashPool ( object ):
46 def get ( self, backref ):
47 return self._jobs [backref].hashdict
48 # --- end of get (...) ---
49 +
50 +# --- end of HashPool ---