def METHOD_NAME(self):
    f = open( versionPath, 'r' )
    lines = []
    for line in f:
        m = versionParser.match( line )
        if m:
            lines.append( '{0}( {1}, {2}, {3}, "{4}", {5} );'.format( self.variableDecl, self.majorVersion, self.minorVersion, self.patchNumber, self.branchName, self.buildNumber ) )
        else:
            lines.append( line.rstrip() )
    f.close()
    f = open( versionPath, 'w' )
    for line in lines:
        f.write( line + "\n" )