aboutsummaryrefslogtreecommitdiff
path: root/grs
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-10-07 07:34:01 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-10-07 07:34:01 -0400
commit665fc43168025d76c7c474df1835beaa5088589f (patch)
treef8d36b7774309ef95f9f261a85ba0f582d5191ad /grs
parentlint: more unused imports. (diff)
downloadgrss-665fc43168025d76c7c474df1835beaa5088589f.tar.gz
grss-665fc43168025d76c7c474df1835beaa5088589f.tar.bz2
grss-665fc43168025d76c7c474df1835beaa5088589f.zip
grs/Populate.py: use isinstance() instead of type().
Diffstat (limited to 'grs')
-rw-r--r--grs/Populate.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/grs/Populate.py b/grs/Populate.py
index db35ee2..c6dce8d 100644
--- a/grs/Populate.py
+++ b/grs/Populate.py
@@ -46,7 +46,8 @@ class Populate():
Execute(cmd, timeout=60, logfile=self.logfile)
# Select the cycle
- if cycle: self.select_cycle(cycle)
+ if cycle:
+ self.select_cycle(cycle)
# Copy from the workdir to the system's portage configroot.
cmd = 'rsync -av %s/ %s' % (self.workdir, self.portage_configroot)
@@ -73,7 +74,7 @@ class Populate():
cycled_files.setdefault(cycle_no, [])
cycled_files[cycle_no].append([dirpath, filename])
# If cycle is just a boolean, then default to the maximum cycle number.
- if type(cycle) is bool:
+ if isinstance(cycle, bool):
cycle_no = max(cycled_files)
else:
cycle_no = cycle