Coverage for database/write.py: 50%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2write.py
4contains write
5"""
7import os
10def write(*args, **kwargs):
11 """
12 write()
14 writes string to file
15 """
17 with open(os.path.join(*(["db-database"]+list(args))), 'w', encoding="utf-8") as file:
18 file.write(kwargs["string"])