Skip to content

Commit

Permalink
Fixed a syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacmackin committed Apr 26, 2015
1 parent 211b275 commit e68e4c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ html = markdown.markdown(source, extensions=[markdown_include])
```

##ChangeLog
###Version 0.5.1
Bugfix for a syntax error.
###Version 0.5
Corrected some errors in documentation and merged in commits of
[diegobz](https://github.com/diegobz) to add support for encoding and tidy up
Expand Down
2 changes: 1 addition & 1 deletion markdown_include/include.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def run(self, lines):
try:
with open(filename, 'r', encoding=self.encoding) as r:
text = r.readlines()
except Exception, e:
except Exception as e:
print('Warning: could not find file {}. Ignoring '
'include statement. Error: {}'.format(filename, e))
lines[loc] = INC_SYNTAX.sub('',line)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
setup(
name = 'markdown-include',
packages = find_packages(),
version = '0.5.0',
version = '0.5.1',
description = 'This is an extension to Python-Markdown which provides an "include" function, similar to that found in LaTeX (and also the C pre-processor and Fortran). I originally wrote it for my FORD Fortran auto-documentation generator.',
long_description = long_description,
author = 'Chris MacMackin',
author_email = '[email protected]',
url = 'https://github.com/cmacmackin/markdown-include/',
download_url = 'https://github.com/cmacmackin/markdown-include/tarball/v0.5.0',
download_url = 'https://github.com/cmacmackin/markdown-include/tarball/v0.5.1',
keywords = ['Markdown', 'typesetting', 'include', 'plugin', 'extension'],
classifiers=[
# How mature is this project? Common values are
Expand Down

0 comments on commit e68e4c6

Please sign in to comment.