enemy7 commited on
Commit
c3f7aca
·
1 Parent(s): 674c965

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -14,8 +14,8 @@ class Tee:
14
  self.file.flush()
15
  self.stdout.flush()
16
 
17
- f= open("log.txt",'a')
18
- ttt = Tee(f)
19
 
20
  sys.stdout =ttt
21
  sys.stderr =ttt
 
14
  self.file.flush()
15
  self.stdout.flush()
16
 
17
+
18
+ ttt = Tee("log.txt")
19
 
20
  sys.stdout =ttt
21
  sys.stderr =ttt