added comments
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@128 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
b8a82e6961
commit
169f809988
@ -67,7 +67,7 @@ class relation (object):
|
|||||||
with spaces, you should avoid using it.'''
|
with spaces, you should avoid using it.'''
|
||||||
|
|
||||||
fp=file(filename,'w') #Opening file in write mode
|
fp=file(filename,'w') #Opening file in write mode
|
||||||
if comma_separated:
|
if comma_separated: #writing csv
|
||||||
writer=csv.writer(fp) #Creating csv writer
|
writer=csv.writer(fp) #Creating csv writer
|
||||||
|
|
||||||
#It wants an iterable containing iterables
|
#It wants an iterable containing iterables
|
||||||
@ -77,7 +77,7 @@ class relation (object):
|
|||||||
|
|
||||||
#Writing content, already in the correct format
|
#Writing content, already in the correct format
|
||||||
writer.writerows(self.content)
|
writer.writerows(self.content)
|
||||||
else:
|
else: #Writing in the old, deprecated, format
|
||||||
res=""
|
res=""
|
||||||
res+=" ".join(self.header.attributes)
|
res+=" ".join(self.header.attributes)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user