Skip to content

Commit

Permalink
Fixed a tiny issue with __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Aug 11, 2010
1 parent 5f85316 commit 4fa38b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion markupsafe/__init__.py
Expand Up @@ -12,7 +12,7 @@
from itertools import imap


__all__ = ['Module', 'soft_unicode', 'escape']
__all__ = ['Markup', 'soft_unicode', 'escape']


_striptags_re = re.compile(r'(<!--.*?-->|<[^>]*>)')
Expand Down
5 changes: 5 additions & 0 deletions markupsafe/tests.py
Expand Up @@ -40,6 +40,11 @@ def __unicode__(self):
assert Markup("<em>Foo &amp; Bar</em>").striptags() == "Foo & Bar"
assert Markup("&lt;test&gt;").unescape() == "<test>"

def test_all_set(self):
import markupsafe as markup
for item in markup.__all__:
getattr(markup, item)


class MarkupLeakTestCase(unittest.TestCase):

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -63,7 +63,7 @@ def run_setup(with_binary):
features['speedups'] = speedups
setup(
name='MarkupSafe',
version='0.9.2',
version='0.9.3',
url='http://dev.pocoo.org/',
license='BSD',
author='Armin Ronacher',
Expand Down

0 comments on commit 4fa38b6

Please sign in to comment.