| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1990,12 +1990,16 @@ def main_curses(scr, args, config, interactive=True, locals_=None, banner=None): | |||
| 1990 | 1990 | clirepl.write("\n") | |
| 1991 | 1991 | ||
| 1992 | 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.") | ||
| 1993 | + clirepl.write( | ||
| 1994 | + "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." | ||
| 1995 | + ) | ||
| 1994 | 1996 | clirepl.write("\n") | |
| 1995 | 1997 | ||
| 1996 | 1998 | if sys.version_info[0] == 2: | |
| 1997 | 1999 | # 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.") | ||
| 2000 | + clirepl.write( | ||
| 2001 | + "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." | ||
| 2002 | + ) | ||
| 1999 | 2003 | clirepl.write("\n") | |
| 2000 | 2004 | ||
| 2001 | 2005 | exit_value = clirepl.repl() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -204,7 +204,9 @@ def main(args=None, locals_=None, banner=None, welcome_message=None): | |||
| 204 | 204 | ||
| 205 | 205 | if sys.version_info[0] == 2: | |
| 206 | 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.") | ||
| 207 | + print( | ||
| 208 | + "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." | ||
| 209 | + ) | ||
| 208 | 210 | ||
| 209 | 211 | global repl | |
| 210 | 212 | repl = FullCurtsiesRepl(config, locals_, welcome_message, interp) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1392,12 +1392,16 @@ def start(main_loop, user_data): | |||
| 1392 | 1392 | myrepl.write("\n") | |
| 1393 | 1393 | ||
| 1394 | 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.") | ||
| 1395 | + myrepl.write( | ||
| 1396 | + "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." | ||
| 1397 | + ) | ||
| 1396 | 1398 | myrepl.write("\n") | |
| 1397 | 1399 | ||
| 1398 | 1400 | if sys.version_info[0] == 2: | |
| 1399 | 1401 | # 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.") | ||
| 1402 | + myrepl.write( | ||
| 1403 | + "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." | ||
| 1404 | + ) | ||
| 1401 | 1405 | myrepl.write("\n") | |
| 1402 | 1406 | ||
| 1403 | 1407 | myrepl.start() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments