From 424a50000a78fff715de4417dba9b4498aeeee4c Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 29 Sep 2017 13:40:02 +0300 Subject: Imported python3.5 3.5.4-4 --- debian/patches/lib-argparse.diff | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/patches/lib-argparse.diff (limited to 'debian/patches/lib-argparse.diff') diff --git a/debian/patches/lib-argparse.diff b/debian/patches/lib-argparse.diff new file mode 100644 index 0000000..c9d604a --- /dev/null +++ b/debian/patches/lib-argparse.diff @@ -0,0 +1,22 @@ +# DP: argparse.py: Make the gettext import conditional + +--- a/Lib/argparse.py ++++ b/Lib/argparse.py +@@ -90,7 +90,16 @@ + import sys as _sys + import textwrap as _textwrap + +-from gettext import gettext as _, ngettext ++try: ++ from gettext import gettext as _, ngettext ++except ImportError: ++ def _(message): ++ return message ++ def ngettext(singular,plural,n): ++ if n == 1: ++ return singular ++ else: ++ return plural + + + SUPPRESS = '==SUPPRESS==' -- cgit v1.2.3