Style fixes
This commit is contained in:
parent
64970b214c
commit
7883986e1d
@ -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, '')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user