Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/
Date: Thu, 28 Apr 2016 15:05:48
Message-Id: 1461855041.dc684ee6e4b1f0b8bef7babdf13a1143046c87c5.dolsen@gentoo
1 commit: dc684ee6e4b1f0b8bef7babdf13a1143046c87c5
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 27 03:20:45 2016 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 14:50:41 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=dc684ee6
7
8 repoman/scanner.py: Mark self.ext_futures private
9
10 pym/repoman/scanner.py | 10 +++++-----
11 1 file changed, 5 insertions(+), 5 deletions(-)
12
13 diff --git a/pym/repoman/scanner.py b/pym/repoman/scanner.py
14 index a5c54b1..f1a0231 100644
15 --- a/pym/repoman/scanner.py
16 +++ b/pym/repoman/scanner.py
17 @@ -200,7 +200,7 @@ class Scanner(object):
18 }
19 # initialize the plugin checks here
20 self.modules = {}
21 - self.ext_futures = {}
22 + self._ext_futures = {}
23 self.pkg_level_futures = None
24
25 def set_kwargs(self, mod):
26 @@ -232,10 +232,10 @@ class Scanner(object):
27 logging.debug("set_func_kwargs(); adding: %s, %s",
28 key, func_kwargs[key])
29 if func_kwargs[key][0] in ['Future', 'ExtendedFuture']:
30 - if key not in self.ext_futures:
31 + if key not in self._ext_futures:
32 logging.debug(
33 "Adding a new key: %s to the ExtendedFuture dict", key)
34 - self.ext_futures[key] = func_kwargs[key]
35 + self._ext_futures[key] = func_kwargs[key]
36 self._set_future(dynamic_data, key, func_kwargs[key])
37 else: # builtin python data type
38 dynamic_data[key] = DATA_TYPES[func_kwargs[key][0]]()
39 @@ -249,9 +249,9 @@ class Scanner(object):
40
41 @param dynamic_data: dictionary
42 '''
43 - for key in list(self.ext_futures):
44 + for key in list(self._ext_futures):
45 if key not in self.pkg_level_futures:
46 - self._set_future(dynamic_data, key, self.ext_futures[key])
47 + self._set_future(dynamic_data, key, self._ext_futures[key])
48
49 @staticmethod
50 def _set_future(dynamic_data, key, data):