Fixed flake8 details
This commit is contained in:
parent
3d947f2d50
commit
51ad5c3a2e
|
|
@ -86,7 +86,7 @@ class DCMLineReader(LineReader):
|
||||||
res = self.f.readline()
|
res = self.f.readline()
|
||||||
try:
|
try:
|
||||||
res = res.decode()
|
res = res.decode()
|
||||||
except UnicodeDecodeError as e:
|
except UnicodeDecodeError:
|
||||||
logger.error('Invalid UTF-8 sequence at line {} of file `{}`'.format(self.line+1, self.file))
|
logger.error('Invalid UTF-8 sequence at line {} of file `{}`'.format(self.line+1, self.file))
|
||||||
nres = ''
|
nres = ''
|
||||||
for c in res:
|
for c in res:
|
||||||
|
|
@ -139,8 +139,8 @@ class LibComponentField(object):
|
||||||
r'([LRCBT])\s+' # 7 HJustify
|
r'([LRCBT])\s+' # 7 HJustify
|
||||||
# KiCad never uses spaces between "CNN", but can load files with it
|
# KiCad never uses spaces between "CNN", but can load files with it
|
||||||
# Some generators seems to use it see #122
|
# Some generators seems to use it see #122
|
||||||
r'([LRCBT]\s*[IN]\s*[BN])\s*' # 8 VJustify+Italic+Bold
|
r'([LRCBT]\s*[IN]\s*[BN])\s*' # 8 VJustify+Italic+Bold
|
||||||
r'("(?:[^\\]|(?:\\.))*")?') # 9 Name for user fields
|
r'("(?:[^\\]|(?:\\.))*")?') # 9 Name for user fields
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue