Fix warnings.
This commit is contained in:
parent
e232c603eb
commit
fb848a86e5
1 changed files with 3 additions and 1 deletions
|
@ -1153,7 +1153,7 @@ def _parse_go_mod(f):
|
||||||
line = readline()
|
line = readline()
|
||||||
while line:
|
while line:
|
||||||
parts = line.strip().split(' ')
|
parts = line.strip().split(' ')
|
||||||
if not parts:
|
if not parts or parts == ['']:
|
||||||
continue
|
continue
|
||||||
if len(parts) == 2 and parts[1] == '(':
|
if len(parts) == 2 and parts[1] == '(':
|
||||||
line = readline()
|
line = readline()
|
||||||
|
@ -1204,6 +1204,8 @@ class Golang(BuildSystem):
|
||||||
pass # TODO(jelmer): Create conflicts?
|
pass # TODO(jelmer): Create conflicts?
|
||||||
elif parts[0] == 'replace':
|
elif parts[0] == 'replace':
|
||||||
pass # TODO(jelmer): do.. something?
|
pass # TODO(jelmer): do.. something?
|
||||||
|
elif parts[0] == 'module':
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
logging.warning(
|
logging.warning(
|
||||||
'Unknown directive %s in go.mod',
|
'Unknown directive %s in go.mod',
|
||||||
|
|
Loading…
Add table
Reference in a new issue