Commits

Victor Stinner  committed 4321557

hachoir-parser: fix README.py and setup.py (for the parser list)

  • Participants
  • Parent commits ee83217

Comments (0)

Files changed (2)

File hachoir-parser/README.py

 #!/usr/bin/env python
 
-
 def writeReadme(out):
     from hachoir_parser.parser_list import HachoirParserList
 
         print >>out, "Parser list"
         print >>out, "==========="
         print >>out
-    HachoirParserList().print_(out, format=format)
+    HachoirParserList().print_(out=out, format=format)
 
 def main():
     readme = open('README', 'w')

File hachoir-parser/setup.py

 #  - edit ChangeLog (set release date)
 #  - run tests/run_testcase.py ~/testcase
 #  - hg commit
-#  - hg tag hachoir-core-XXX
+#  - hg tag hachoir-parser-XXX
 #  - hg push
-#  - run python2.5 ./setup.py --setuptools register sdist bdist_egg upload
-#  - run python2.4 ./setup.py --setuptools bdist_egg upload
-#  - run python2.6 ./setup.py --setuptools bdist_egg upload
-#  - check http://pypi.python.org/pypi/hachoir-core
+#  - run: python2.5 ./setup.py --setuptools register sdist bdist_egg upload
+#  - run: python2.4 ./setup.py --setuptools bdist_egg upload
+#  - run: python2.6 ./setup.py --setuptools bdist_egg upload
+#  - check http://pypi.python.org/pypi/hachoir-parser
 #  - update the web page:
 #    http://bitbucket.org/haypo/hachoir/wiki/Install/source
 
     "image", "misc", "network", "program", "video")
 
 def getLongDescription():
-    try:
-        return open('README').read()
-    except IOError:
-        pass
     from README import writeReadme
     from StringIO import StringIO
     out = StringIO()