[Python-modules-commits] r15876 - in packages/python-html2text/trunk/debian/patches (1 file)
stefanor at users.alioth.debian.org
stefanor at users.alioth.debian.org
Sat Feb 26 11:44:04 UTC 2011
Date: Saturday, February 26, 2011 @ 11:44:03
Author: stefanor
Revision: 15876
Include --version support in optparse patch
Modified:
packages/python-html2text/trunk/debian/patches/optparse.patch
Modified: packages/python-html2text/trunk/debian/patches/optparse.patch
===================================================================
--- packages/python-html2text/trunk/debian/patches/optparse.patch 2011-02-26 11:37:38 UTC (rev 15875)
+++ packages/python-html2text/trunk/debian/patches/optparse.patch 2011-02-26 11:44:03 UTC (rev 15876)
@@ -13,7 +13,7 @@
try: from textwrap import wrap
except: pass
-@@ -446,28 +446,36 @@
+@@ -446,28 +446,37 @@
if __name__ == "__main__":
baseurl = ''
@@ -22,7 +22,8 @@
- if arg.startswith('http://') or arg.startswith('https://'):
- baseurl = arg
+
-+ p = optparse.OptionParser('%prog [(filename|url) [encoding]]')
++ p = optparse.OptionParser('%prog [(filename|url) [encoding]]',
++ version='%prog ' + __version__)
+ args = p.parse_args()[1]
+ if len(args) > 0:
+ file_ = args[0]
More information about the Python-modules-commits
mailing list