Skip to content

Commit aaa3aa3

Browse files
committed
Fix unicode characters in log() function
1 parent 0df9502 commit aaa3aa3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ tomreece@gmail.com
116116

117117
### Changelog
118118

119+
#### 2016-07-17 [v0.4.8](https://github.com/tomreece/pucauto/archive/v0.4.8.zip)
120+
* Fix unicode character support in log output
121+
119122
#### 2016-07-16 [v0.4.7](https://github.com/tomreece/pucauto/archive/v0.4.7.zip)
120123
* Show date and time in log output
121124

pucauto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
def log(s):
2626
"""Prints s with the date/time like Jul 16 09:15:48 PM CDT Hello world"""
27-
print("{} {}".format(time.strftime("%b %d %I:%M:%S %p %Z"), s))
27+
print(u"{} {}".format(time.strftime("%b %d %I:%M:%S %p %Z"), s))
2828

2929

3030
def print_pucauto():
@@ -38,7 +38,7 @@ def print_pucauto():
3838
| ___|| || _|| || | | | | |_| |
3939
| | | || |_ | _ || | | | | |
4040
|___| |_______||_______||__| |__||_______| |___| |_______|
41-
pucauto.com v0.4.7
41+
pucauto.com v0.4.8
4242
github.com/tomreece/pucauto
4343
@pucautobot on Twitter
4444

0 commit comments

Comments
 (0)