We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58bab0a commit 8a7eb40Copy full SHA for 8a7eb40
python-stdlib/logging/logging.py
@@ -3,9 +3,6 @@
3
import sys
4
import time
5
6
-if hasattr(time, "strftime"):
7
- from time import strftime
8
-
9
CRITICAL = const(50)
10
ERROR = const(40)
11
WARNING = const(30)
@@ -92,7 +89,7 @@ def usesTime(self):
92
89
93
90
def formatTime(self, datefmt, record):
94
91
if hasattr(time, "strftime"):
95
- return strftime(datefmt, time.localtime(record.ct))
+ return time.strftime(datefmt, time.localtime(record.ct))
96
return None
97
98
def format(self, record):
0 commit comments