mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 21:42:21 +03:00
type fixing
This commit is contained in:
parent
62041fb649
commit
e78328c880
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ class Util:
|
||||||
return content
|
return content
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def write_file(full_path, content, mode='w'):
|
def write_file(full_path, content, mode='w+'):
|
||||||
file = None
|
file = None
|
||||||
try:
|
try:
|
||||||
file = open(full_path, mode)
|
file = open(full_path, mode)
|
||||||
|
@ -242,4 +242,4 @@ class Util:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def generate_uuid():
|
def generate_uuid():
|
||||||
return uuid.uuid4()
|
return str(uuid.uuid4())
|
||||||
|
|
Loading…
Reference in a new issue