소스 검색

remove unused import

erpalma 5 년 전
부모
커밋
04b68a1428
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      lenovo_fix.py

+ 1 - 2
lenovo_fix.py

@@ -3,7 +3,6 @@
 import argparse
 import configparser
 import dbus
-import glob
 import os
 import psutil
 import struct
@@ -208,7 +207,7 @@ def set_hwp(pref):
             f.write(pref.encode())
         if args.debug:
             with open(c) as f:
-                print('[D] HWP for cpu{:d} - write {:s} - read {:s}'.format(i, pref, f.read()))
+                print('[D] HWP for cpu{:d} - write "{:s}" - read "{:s}"'.format(i, pref, f.read().strip()))
 
 
 def power_thread(config, regs, exit_event):