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 datetime
|
||||
import os.path
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import collections
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
def dict_merge(dct, merge_dct):
|
||||
for k, v in merge_dct.items():
|
||||
if (k in dct and isinstance(dct[k], dict) and isinstance(merge_dct[k], dict)): #noqa
|
||||
dict_merge(dct[k], merge_dct[k])
|
||||
def dict_merge(d0, d1):
|
||||
for k, v in d1.items():
|
||||
if (k in d0 and isinstance(d0[k], dict) and isinstance(d1[k], dict)):
|
||||
dict_merge(d0[k], d1[k])
|
||||
else:
|
||||
dct[k] = merge_dct[k]
|
||||
d0[k] = d1[k]
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import requests
|
||||
import urllib.parse
|
||||
import json
|
||||
|
|
1
main.py
1
main.py
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
import yaml
|
||||
|
|
Loading…
Reference in a new issue