Skip to content

Commit fb6e5dc

Browse files
authored
Fix undefined names in Python code (#99)
* Fix undefined names in Python code * revert four files
1 parent a5093f6 commit fb6e5dc

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

demo/_curses.py

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
from _curses_cffi import ffi, lib
77

8+
try:
9+
unicode
10+
except NameError:
11+
unicode = str
12+
813

914
def _copy_to_globals(name):
1015
globals()[name] = getattr(lib, name)

demo/bsdopendirtype.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from _bsdopendirtype import ffi, lib
23

34

demo/recopendirtype.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from _recopendirtype import ffi, lib
23

34

0 commit comments

Comments
 (0)