summary refs log tree commit diff stats
path: root/test1.py
diff options
context:
space:
mode:
Diffstat (limited to 'test1.py')
-rw-r--r--test1.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test1.py b/test1.py
index 715e510d..97505c41 100644
--- a/test1.py
+++ b/test1.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # coding=utf-8
 # some tests with curses, threads and unicode
 import os
@@ -6,6 +6,9 @@ import curses
 import time
 import threading
 import locale
+import _thread
+
+lock = _thread.allocate_lock()
 
 locale.setlocale(locale.LC_ALL, 'en_US.utf8')