diff options
-rw-r--r-- | MANIFEST.in | 1 | ||||
-rw-r--r-- | NEWS.txt | 11 | ||||
-rwxr-xr-x | json_diff.py | 2 | ||||
-rw-r--r-- | setup.py | 6 |
4 files changed, 15 insertions, 5 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index f2e27b3..cb36ca6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ recursive-include test *.html *.json +include test/__init__.py include NEWS.txt @@ -1,7 +1,14 @@ -1.3.1 2012-04-24 +1.3.3 2012-04-24 + * Grrr, python 2.4 doesn't have context managers + +1.3.2 2012-04-24 + * Include mising test/__init__.py to the distribution to allow + tests for packgaging. + +1.3.1 2012-04-23 * Back to the past: previous version was not compatible with Python 2.4. -1.3.0 2012-04-24 +1.3.0 2012-04-23 * Added -o parameter for output to the specified file. 1.2.9 2012-02-13 diff --git a/json_diff.py b/json_diff.py index fb0808b..d83c6f1 100755 --- a/json_diff.py +++ b/json_diff.py @@ -33,7 +33,7 @@ import logging from optparse import OptionParser __author__ = "Matěj Cepl" -__version__ = "1.3.1" +__version__ = "1.3.3" logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s', level=logging.INFO) @@ -24,8 +24,10 @@ class RunTests(Command): def read(fname): - with open(os.path.join(os.path.dirname(__file__), fname)) as f: - return "\n" + f.read().replace("\r\n", "\n") + f = open(os.path.join(os.path.dirname(__file__), fname)) + out = "\n" + f.read().replace("\r\n", "\n") + f.close() + return out def get_long_description(): |