From 65bc13ac3b5bfa4a006d174c1ad2352023840b1d Mon Sep 17 00:00:00 2001 From: rzaitov Date: Fri, 8 Nov 2013 12:53:31 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BE=D1=82=20=D0=BD=D0=B5=D0=B8=D1=81=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D0=B7=D1=83=D0=B5=D0=BC=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CommandBuilders/PatchCsprojCommandBuilder.py | 4 ++-- .../CommandBuilders/PatchInfoplistCommandBuilder.py | 2 +- .../Tests/UnitTests/ProjectParser/test_projectParser.py | 3 +-- scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py | 5 +---- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/scripts/TouchinBuild/CommandBuilders/PatchCsprojCommandBuilder.py b/scripts/TouchinBuild/CommandBuilders/PatchCsprojCommandBuilder.py index 190f17e..fd728f0 100644 --- a/scripts/TouchinBuild/CommandBuilders/PatchCsprojCommandBuilder.py +++ b/scripts/TouchinBuild/CommandBuilders/PatchCsprojCommandBuilder.py @@ -13,7 +13,7 @@ class PatchCsprojCommandBuilder: def getCommandFor(self, line): assert line is not None - parser = InsideSetParser(self.__valueProvider, 'csproj') + parser = InsideSetParser('csproj') result = parser.parseLine(line) csprojPath = result[0] @@ -28,7 +28,7 @@ class PatchCsprojCommandBuilder: def isPatchCsproj(self, line): assert line is not None - parser = InsideSetParser(self.__valueProvider, 'csproj') + parser = InsideSetParser('csproj') isValid = parser.isValidLine(line) return isValid diff --git a/scripts/TouchinBuild/CommandBuilders/PatchInfoplistCommandBuilder.py b/scripts/TouchinBuild/CommandBuilders/PatchInfoplistCommandBuilder.py index 75af291..7c56d72 100644 --- a/scripts/TouchinBuild/CommandBuilders/PatchInfoplistCommandBuilder.py +++ b/scripts/TouchinBuild/CommandBuilders/PatchInfoplistCommandBuilder.py @@ -28,6 +28,6 @@ class PatchInfoplistCommandBuilder: return command def __createParser(self): - parser = InsideSetParser(self.__valueProvider, 'plist') + parser = InsideSetParser('plist') return parser diff --git a/scripts/TouchinBuild/Tests/UnitTests/ProjectParser/test_projectParser.py b/scripts/TouchinBuild/Tests/UnitTests/ProjectParser/test_projectParser.py index 9456623..6253692 100644 --- a/scripts/TouchinBuild/Tests/UnitTests/ProjectParser/test_projectParser.py +++ b/scripts/TouchinBuild/Tests/UnitTests/ProjectParser/test_projectParser.py @@ -7,8 +7,7 @@ from parsers.InsideParser.InsideSetParser import InsideSetParser class TestCsprojParser(unittest.TestCase): def setUp(self): - value_provider = ValueProvider() - self.parser = InsideSetParser(value_provider, 'csproj') + self.parser = InsideSetParser('csproj') def test_isValid(self): diff --git a/scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py b/scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py index cef95f6..6156d27 100644 --- a/scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py +++ b/scripts/TouchinBuild/parsers/InsideParser/InsideSetParser.py @@ -4,11 +4,8 @@ from parsers.LineParser import LineParser class InsideSetParser(LineParser): - def __init__(self, value_provider, fileExt): + def __init__(self, fileExt): LineParser.__init__(self) - assert value_provider is not None - - self.__value_provider = value_provider self.__extension = fileExt def parseLine(self, line):