Skip to content

Commit 5698a9e

Browse files
committed
Fix compatibility with 2.7
Signed-off-by: Sebastian Ramacher <sebastian@ramacher.at>
1 parent 23ee3c2 commit 5698a9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bpdb/debugger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def postloop(self):
4444
# cmd.Cmd commands
4545

4646
def do_Bpython(self, arg):
47-
locals_ = dict(**self.curframe.f_globals, **self.curframe.f_locals)
47+
locals_ = self.curframe.f_globals.copy()
48+
locals_.update(self.curframe.f_locals)
4849
bpython.embed(locals_, ['-i'])
4950

5051

0 commit comments

Comments
 (0)