summaryrefslogtreecommitdiff
path: root/canonicalize/tools.py
blob: 1df653a2c0375cbcdf0b2d52e5dc460412503cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""This is a file of useful functions used throughout the hint generation program"""
import time, os.path, ast, json

def log(msg, filename="main", newline=True):
    return
    txt = ""
    if newline:
        t = time.strftime("%d %b %Y %H:%M:%S")
        txt += t + "\t"
    txt += msg
    if newline:
        txt += "\n"
    f = open('log/' + filename + ".log", "a")
    f.write(txt)
    f.close()