소스 검색

eng prototype

ming 3 년 전
부모
커밋
80b710651b
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      OpenshotService/openshot_video_generator.py

+ 0 - 1
OpenshotService/openshot_video_generator.py

@@ -212,7 +212,6 @@ def call_anchor(fileName,avatar):
 def trim_punctuation(s):
     pat_block = u'[^\u4e00-\u9fff0-9a-zA-Z]+';
     pattern = u'([0-9]+{0}[0-9]+)|{0}'.format(pat_block)
-    pattern.pop(' ')
     res = re.sub(pattern, lambda x: x.group(1) if x.group(1) else u" " ,s)
     return res