Skip to content

Commit c516db0

Browse files
committed
UrlLib
1 parent 8cb3bea commit c516db0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,15 +1268,9 @@ with pycallgraph.PyCallGraph(output=graph):
12681268
#### Utility code for unique PNG filenames:
12691269
```python
12701270
def get_filename():
1271-
time_str = get_current_datetime_string()
1271+
from datetime import datetime
1272+
time_str = datetime.now().strftime('%Y%m%d%H%M%S')
12721273
return f'profile-{time_str}.png'
1273-
1274-
def get_current_datetime_string():
1275-
now = datetime.datetime.now()
1276-
return get_datetime_string(now)
1277-
1278-
def get_datetime_string(a_datetime):
1279-
return a_datetime.strftime('%Y%m%d%H%M%S')
12801274
```
12811275

12821276

0 commit comments

Comments
 (0)