Add coding header to all files.

This commit is contained in:
redxef 2022-09-28 15:59:12 +02:00
parent 092aa2011f
commit f048f58137
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
4 changed files with 14 additions and 7 deletions

View file

@ -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

View file

@ -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]

View file

@ -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

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys import sys
import yaml import yaml