summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-06-16 03:20:07 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-16 03:20:07 (GMT)
commit116dd5eba60a940b35db6aaf4e8c998ac30ad440 (patch)
treee25397e51f8f281c9a8bfebe24bedaba01d5fd53 /Modules/_cursesmodule.c
parentc9318853bbe8d62cb72ed853b0ffb75311ea474c (diff)
downloadcpython-116dd5eba60a940b35db6aaf4e8c998ac30ad440.zip
cpython-116dd5eba60a940b35db6aaf4e8c998ac30ad440.tar.gz
cpython-116dd5eba60a940b35db6aaf4e8c998ac30ad440.tar.bz2
bpo-30176: Add missing curses cell attributes constants (GH-1302)
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index f278268..5dc0865 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -3335,9 +3335,6 @@ PyInit__curses(void)
SetDictInt("A_BLINK", A_BLINK);
SetDictInt("A_DIM", A_DIM);
SetDictInt("A_BOLD", A_BOLD);
-#ifdef A_ITALIC
- SetDictInt("A_ITALIC", A_ITALIC);
-#endif
SetDictInt("A_ALTCHARSET", A_ALTCHARSET);
#if !defined(__NetBSD__)
SetDictInt("A_INVIS", A_INVIS);
@@ -3366,6 +3363,11 @@ PyInit__curses(void)
SetDictInt("A_VERTICAL", A_VERTICAL);
#endif
+ /* ncurses extension */
+#ifdef A_ITALIC
+ SetDictInt("A_ITALIC", A_ITALIC);
+#endif
+
SetDictInt("COLOR_BLACK", COLOR_BLACK);
SetDictInt("COLOR_RED", COLOR_RED);
SetDictInt("COLOR_GREEN", COLOR_GREEN);