소스 검색

Added backwards-compatibility property with DeprecationWarning

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.0
MegaIng1 4 년 전
부모
커밋
ee9857cabb
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. +9
    -0
      lark/lark.py

+ 9
- 0
lark/lark.py 파일 보기

@@ -489,5 +489,14 @@ class Lark(Serialize):
def source(self, value):
self.source_path = value

@property
def grammar_source(self):
warn("Lark.grammar_source attribute has been renamed to Lark.source_grammar", DeprecationWarning)
return self.source_grammar
@grammar_source.setter
def grammar_source(self, value):
self.source_grammar = value


###}

불러오는 중...
취소
저장