Skip to content

Commit

Permalink
Update copier.py
Browse files Browse the repository at this point in the history
test complite
  • Loading branch information
kunrunic committed Apr 29, 2022
1 parent ea75c93 commit 8bf9280
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pykun/file/copier.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def converts(self):
return self.__converts
@converts.setter
def converts(self, item):
if item != self._const_remove() :
if item != self._const_remove :
self.__converts.append(item)
@property
def match(self):
Expand Down Expand Up @@ -106,8 +106,8 @@ def _textAfter(self, line, mInfo):
ePos = sPos + len(mInfo.key)
return b"".join([line[:ePos], mInfo.val, line[ePos:]])

def _textLimeRemove(self, line, mInfo):
return self._const_remove()
def _textLineRemove(self, line, mInfo):
return self._const_remove

def _convert(self, line, matchList):
if len(matchList) <= 0 :
Expand All @@ -117,7 +117,7 @@ def _convert(self, line, matchList):
cvtLine = line
for mInfo in matchList:
cvtLine = self.__writeOptionMap[mInfo.opt](cvtLine, mInfo)
if cvtLine == self._const_remove() : break #find remove const stopped loop
if cvtLine == self._const_remove : break #find remove const stopped loop
return cvtLine

def process(self, line):
Expand Down

0 comments on commit 8bf9280

Please sign in to comment.