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)