d/patches/fixup-python3-argparse.patch: Fix use of argparse for compatibility with python3.3.

This commit is contained in:
James Page
2013-10-02 14:14:01 +01:00
parent 77634c1f6f
commit 5c89ff88e9
3 changed files with 26 additions and 0 deletions

7
debian/changelog vendored
View File

@@ -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 <james.page@ubuntu.com> 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

View File

@@ -0,0 +1,18 @@
Description: Fixup for python3.3 compat
Author: James Page <james.page@ubuntu.com>
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",

View File

@@ -1 +1,2 @@
remove_non_ascii_chars_from_license.patch
fixup-python3-argparse.patch