Style fixes

This commit is contained in:
jkeating@reducto.boston.redhat.com 2007-02-13 17:20:01 -05:00 committed by Jesse Keating
parent 64970b214c
commit 7883986e1d
2 changed files with 11 additions and 11 deletions

View File

@ -45,13 +45,13 @@ class Pungi:
'.composeinfo')
def writeinfo(self, line):
'''Append a line to the infofile in self.infofile'''
"""Append a line to the infofile in self.infofile"""
f=open(self.infofile, "a+")
f.write(line.strip() + "\n")
f.close()
def mkrelative(self, subfile):
'''Return the relative path for 'subfile' underneath 'self.destdir'.'''
"""Return the relative path for 'subfile' underneath 'self.destdir'."""
if subfile.startswith(self.destdir):
return subfile.replace(self.destdir + os.path.sep, '')