From 3f6c9892122dace38121c5aadba7f35d2f2c3d67 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Mon, 10 Nov 2008 17:12:53 +0000 Subject: [PATCH] credits and python way to iterate dictionary git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@56 014f5005-505e-4b48-8d0a-63407b615a7c --- CREDITS | 1 + relation.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 CREDITS diff --git a/CREDITS b/CREDITS new file mode 100644 index 0000000..ad39af6 --- /dev/null +++ b/CREDITS @@ -0,0 +1 @@ +Ori Avtalion for suggesting some improvements \ No newline at end of file diff --git a/relation.py b/relation.py index dc24272..6c90128 100644 --- a/relation.py +++ b/relation.py @@ -152,8 +152,8 @@ class relation (object): newt=relation() newt.header=header(list(self.header.attributes)) - for i in params: - if (newt.header.rename(i,params[i])) == False: + for old,new in params.iteritems(): + if (newt.header.rename(old,new)) == False: return None newt.content=list(self.content)