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 datetime
import os.path

View file

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

View file

@ -1,3 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import urllib.parse
import json

View file

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