diff --git a/demo/_curses.py b/demo/_curses.py index 46443c24..d5e993f4 100644 --- a/demo/_curses.py +++ b/demo/_curses.py @@ -5,6 +5,11 @@ from _curses_cffi import ffi, lib +try: + unicode +except NameError: + unicode = str + def _copy_to_globals(name): globals()[name] = getattr(lib, name) diff --git a/demo/bsdopendirtype.py b/demo/bsdopendirtype.py index 75a996a2..283e33dc 100644 --- a/demo/bsdopendirtype.py +++ b/demo/bsdopendirtype.py @@ -1,3 +1,4 @@ +import os from _bsdopendirtype import ffi, lib diff --git a/demo/recopendirtype.py b/demo/recopendirtype.py index 768318bd..e22f92e9 100644 --- a/demo/recopendirtype.py +++ b/demo/recopendirtype.py @@ -1,3 +1,4 @@ +import os from _recopendirtype import ffi, lib