From 5c89ff88e95f020416fbacd110dfb8e0316894f3 Mon Sep 17 00:00:00 2001 From: James Page Date: Wed, 2 Oct 2013 14:14:01 +0100 Subject: [PATCH] d/patches/fixup-python3-argparse.patch: Fix use of argparse for compatibility with python3.3. --- debian/changelog | 7 +++++++ debian/patches/fixup-python3-argparse.patch | 18 ++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 26 insertions(+) create mode 100644 debian/patches/fixup-python3-argparse.patch diff --git a/debian/changelog b/debian/changelog index bd362c7..6d6d344 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-lesscpy (0.9j-3) UNRELEASED; urgency=low + + * d/patches/fixup-python3-argparse.patch: Fix use of argparse for + compatibility with python3.3. + + -- James Page Wed, 02 Oct 2013 14:12:42 +0100 + python-lesscpy (0.9j-2) unstable; urgency=low * Renamed the MIT license to Expat, after kind explanation from the FTP diff --git a/debian/patches/fixup-python3-argparse.patch b/debian/patches/fixup-python3-argparse.patch new file mode 100644 index 0000000..64d4bc5 --- /dev/null +++ b/debian/patches/fixup-python3-argparse.patch @@ -0,0 +1,18 @@ +Description: Fixup for python3.3 compat +Author: James Page +Forwarded: https://github.com/robotis/Lesscpy/pull/23 + +--- a/lesscpy/scripts/compiler.py ++++ b/lesscpy/scripts/compiler.py +@@ -84,8 +84,9 @@ def run(): + """Run compiler + """ + aparse = argparse.ArgumentParser(description='LessCss Compiler', +- epilog='<< jtm@robot.is @_o >>', +- version=VERSION_STR) ++ epilog='<< jtm@robot.is @_o >>') ++ aparse.add_argument('-v', '--version', action='version', ++ version=VERSION_STR) + aparse.add_argument('-I', '--include', action="store", type=str, + help="Included less-files (comma separated)") + aparse.add_argument('-V', '--verbose', action="store_true", diff --git a/debian/patches/series b/debian/patches/series index 12b53c5..3582d05 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ remove_non_ascii_chars_from_license.patch +fixup-python3-argparse.patch