| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,13 @@ Changelog | |||
| 4 | 4 | 0.19 | |
| 5 | 5 | ---- | |
| 6 | 6 | ||
| 7 | + General information: | ||
| 8 | + * The bpython-cli and bpython-urwid rendering backends have been deprecated and | ||
| 9 | + will show a warning that they'll be removed in a future release when started. | ||
| 10 | + * Usage in combination with Python 2 has been deprecated. This does not mean that | ||
| 11 | + support is dropped instantly but rather that at some point in the future we will | ||
| 12 | + stop running our testcases against Python 2. | ||
| 13 | + | ||
| 7 | 14 | New features: | |
| 8 | 15 | ||
| 9 | 16 | Fixes: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1988,6 +1988,16 @@ def main_curses(scr, args, config, interactive=True, locals_=None, banner=None): | |||
| 1988 | 1988 | if banner is not None: | |
| 1989 | 1989 | clirepl.write(banner) | |
| 1990 | 1990 | clirepl.write("\n") | |
| 1991 | + | ||
| 1992 | + # XXX these deprecation warnings need to go at some point | ||
| 1993 | + clirepl.write("WARNING: You are using `bpython-cli`, the curses backend for `bpython`. This backend has been deprecated in version 0.19 and might disappear in a future version.") | ||
| 1994 | + clirepl.write("\n") | ||
| 1995 | + | ||
| 1996 | + if sys.version_info[0] == 2: | ||
| 1997 | + # XXX these deprecation warnings need to go at some point | ||
| 1998 | + clirepl.write("WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version.") | ||
| 1999 | + clirepl.write("\n") | ||
| 2000 | + | ||
| 1991 | 2001 | exit_value = clirepl.repl() | |
| 1992 | 2002 | if hasattr(sys, "exitfunc"): | |
| 1993 | 2003 | sys.exitfunc() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -201,6 +201,11 @@ def main(args=None, locals_=None, banner=None, welcome_message=None): | |||
| 201 | 201 | print(bpargs.version_banner()) | |
| 202 | 202 | if banner is not None: | |
| 203 | 203 | print(banner) | |
| 204 | + | ||
| 205 | + if sys.version_info[0] == 2: | ||
| 206 | + # XXX these deprecation warnings need to go at some point | ||
| 207 | + print("WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version.") | ||
| 208 | + | ||
| 204 | 209 | global repl | |
| 205 | 210 | repl = FullCurtsiesRepl(config, locals_, welcome_message, interp) | |
| 206 | 211 | try: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1390,6 +1390,16 @@ def start(main_loop, user_data): | |||
| 1390 | 1390 | if banner is not None: | |
| 1391 | 1391 | myrepl.write(banner) | |
| 1392 | 1392 | myrepl.write("\n") | |
| 1393 | + | ||
| 1394 | + # XXX these deprecation warnings need to go at some point | ||
| 1395 | + myrepl.write("WARNING: You are using `bpython-urwid`, the urwid backend for `bpython`. This backend has been deprecated in version 0.19 and might disappear in a future version.") | ||
| 1396 | + myrepl.write("\n") | ||
| 1397 | + | ||
| 1398 | + if sys.version_info[0] == 2: | ||
| 1399 | + # XXX these deprecation warnings need to go at some point | ||
| 1400 | + myrepl.write("WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version.") | ||
| 1401 | + myrepl.write("\n") | ||
| 1402 | + | ||
| 1393 | 1403 | myrepl.start() | |
| 1394 | 1404 | ||
| 1395 | 1405 | # This bypasses main_loop.set_alarm_in because we must *not* | |
| Back | FazBrowse Home | New Git URL |
0 commit comments