summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/abandon.py2
-rw-r--r--subcmds/info.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/abandon.py b/subcmds/abandon.py
index be32dc5c..f1c2a839 100644
--- a/subcmds/abandon.py
+++ b/subcmds/abandon.py
@@ -58,7 +58,7 @@ It is equivalent to "git branch -D <branchname>".
58 pm.update() 58 pm.update()
59 59
60 if opt.all: 60 if opt.all:
61 branches = project.GetBranches().keys() 61 branches = list(project.GetBranches().keys())
62 else: 62 else:
63 branches = [nb] 63 branches = [nb]
64 64
diff --git a/subcmds/info.py b/subcmds/info.py
index f2827b34..2fff3acc 100644
--- a/subcmds/info.py
+++ b/subcmds/info.py
@@ -99,7 +99,7 @@ class Info(PagedCommand):
99 self.headtext(p.revisionExpr) 99 self.headtext(p.revisionExpr)
100 self.out.nl() 100 self.out.nl()
101 101
102 localBranches = p.GetBranches().keys() 102 localBranches = list(p.GetBranches().keys())
103 self.heading("Local Branches: ") 103 self.heading("Local Branches: ")
104 self.redtext(str(len(localBranches))) 104 self.redtext(str(len(localBranches)))
105 if len(localBranches) > 0: 105 if len(localBranches) > 0: