From c23b138ed72d794521b19ff7d8076b32b0b7bf46 Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Sun, 8 Sep 2019 22:05:57 +0200 Subject: 2to3 --- bubbob/mnstrmap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bubbob/mnstrmap.py') diff --git a/bubbob/mnstrmap.py b/bubbob/mnstrmap.py index 88e531d..9dbc4ed 100644 --- a/bubbob/mnstrmap.py +++ b/bubbob/mnstrmap.py @@ -7,7 +7,7 @@ class Monster1: self.player = player def nrange(start,n): - return range(start,start+n) + return list(range(start,start+n)) class Nasty(Monster1): right = nrange(239,4) @@ -289,11 +289,11 @@ class birange: self.a = a self.n = n def __getitem__(self, pn): - return range(self.a + 1000*pn, self.a + 1000*pn + self.n) + return list(range(self.a + 1000*pn, self.a + 1000*pn + self.n)) class bidict: def __init__(self, a,b): - self.a = a.items() + self.a = list(a.items()) def __getitem__(self, pn): pn *= 1000 d = {} -- cgit v1.2.3