Kaydet (Commit) af4181c1 authored tarafından Batuhan Osman TASKAYA's avatar Batuhan Osman TASKAYA

Ignore warnings, fixes #76

üst 75733cba
...@@ -7,6 +7,7 @@ import ast ...@@ -7,6 +7,7 @@ import ast
import collections import collections
import io import io
import sys import sys
import warnings
from tokenize_rt import ESCAPED_NL from tokenize_rt import ESCAPED_NL
from tokenize_rt import Offset from tokenize_rt import Offset
...@@ -30,7 +31,9 @@ END_BRACES = frozenset((')', '}', ']')) ...@@ -30,7 +31,9 @@ END_BRACES = frozenset((')', '}', ']'))
def ast_parse(contents_text): def ast_parse(contents_text):
return ast.parse(contents_text.encode('UTF-8')) with warnings.catch_warnings():
warnings.simplefilter('ignore')
return ast.parse(contents_text.encode('UTF-8'))
def _to_offset(node): def _to_offset(node):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment