From cce6c435a815045fd4d33ac93350527690b47bd8 Mon Sep 17 00:00:00 2001 From: pbrod Date: Wed, 1 Jun 2016 01:27:31 +0200 Subject: [PATCH] Fixed some python 3 issues --- wafo/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wafo/misc.py b/wafo/misc.py index bb2c662..68a16be 100644 --- a/wafo/misc.py +++ b/wafo/misc.py @@ -603,7 +603,7 @@ class Bunch(object): self.__dict__.update(kwargs) def keys(self): - return self.__dict__.keys() + return list(self.__dict__) def update(self, ** kwargs): self.__dict__.update(kwargs) @@ -2244,7 +2244,7 @@ def getshipchar(value=None, property="max_deadweight", # @ReservedAssignment merchant fleet", Bolt Beranek and Newman Technical Memorandum No. 458. ''' if value is None: - names = kwds.keys() + names = list(kwds) _assert(len(names) == 1, 'Only one keyword allowed!') property = names[0] # @ReservedAssignment value = kwds[property]