test unicode for Windows
This commit is contained in:
@@ -44,12 +44,15 @@ try:
|
|||||||
done_tag = '✔'
|
done_tag = '✔'
|
||||||
plus_tag = '➕'
|
plus_tag = '➕'
|
||||||
pinterest_logo = '🅿️'
|
pinterest_logo = '🅿️'
|
||||||
|
# Test Windows unicode capability by printing logo, throws if not:
|
||||||
|
print(pinterest_logo, end='\r')
|
||||||
|
sys.stdout.flush()
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
x_tag = 'x'
|
x_tag = 'x'
|
||||||
done_tag = 'DONE'
|
done_tag = 'DONE'
|
||||||
plus_tag = '+'
|
plus_tag = '+'
|
||||||
pinterest_logo = 'P'
|
pinterest_logo = 'P'
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|||||||
Reference in New Issue
Block a user