Style fixes
This commit is contained in:
parent
64970b214c
commit
7883986e1d
@ -45,13 +45,13 @@ class Pungi:
|
|||||||
'.composeinfo')
|
'.composeinfo')
|
||||||
|
|
||||||
def writeinfo(self, line):
|
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=open(self.infofile, "a+")
|
||||||
f.write(line.strip() + "\n")
|
f.write(line.strip() + "\n")
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def mkrelative(self, subfile):
|
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):
|
if subfile.startswith(self.destdir):
|
||||||
return subfile.replace(self.destdir + os.path.sep, '')
|
return subfile.replace(self.destdir + os.path.sep, '')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user