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: Wed, 27 Apr 2016 05:22:46
Message-Id: 1461734440.5b1499d1c8a15cfcbf51fe55bf412f3d0583c41d.dolsen@gentoo
1 commit: 5b1499d1c8a15cfcbf51fe55bf412f3d0583c41d
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: Wed Apr 27 05:20:40 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5b1499d1
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 46e9d85..ab1339a 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):