Add coding header to all files.
This commit is contained in:
parent
092aa2011f
commit
f048f58137
4 changed files with 14 additions and 7 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import datetime
|
import datetime
|
||||||
import os.path
|
import os.path
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import collections
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
def dict_merge(d0, d1):
|
||||||
def dict_merge(dct, merge_dct):
|
for k, v in d1.items():
|
||||||
for k, v in merge_dct.items():
|
if (k in d0 and isinstance(d0[k], dict) and isinstance(d1[k], dict)):
|
||||||
if (k in dct and isinstance(dct[k], dict) and isinstance(merge_dct[k], dict)): #noqa
|
dict_merge(d0[k], d1[k])
|
||||||
dict_merge(dct[k], merge_dct[k])
|
|
||||||
else:
|
else:
|
||||||
dct[k] = merge_dct[k]
|
d0[k] = d1[k]
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import json
|
import json
|
||||||
|
|
1
main.py
1
main.py
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import yaml
|
import yaml
|
||||||
|
|
Loading…
Reference in a new issue