File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11# rejson-py changelog
22
3+ ## 0.5.1 20191129
4+
5+ * #29 Use io.open() and 'utf-8' encoding to read version
6+
7+ ## 0.5.0 20190901
8+
9+ * #26 Fixing retrieving non-ascii string with JSON.GET, added no_escape flag
10+
11+ ## 0.4.0 20190308
12+
13+ * Add exception handler for .jsonget for non-existent keys
14+
315## 0.3.0 20190107
416
5- * upgrade dependency to redis-py >=3.0.0
17+ * Upgrade dependency to redis-py >=3.0.0
618
719## 0.2.1 20170605
820
Original file line number Diff line number Diff line change @@ -120,6 +120,6 @@ def decode(self, obj):
120120obj = rj.jsonget('custom', Path.rootPath())
121121```
122122"""
123- __version__ = "0.5.0 "
123+ __version__ = "0.5.1 "
124124from .client import Client
125125from .path import Path
Original file line number Diff line number Diff line change 1- hiredis == 0.2.0
21redis >= 3.0.0
32six >= 1.10
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
33from setuptools import setup , find_packages
4+ import io
45import os
56import sys
67import re
78import shutil
89
9-
1010def get_version (package ):
1111 """
1212 Return package version as listed in `__version__` in `init.py`.
1313 """
14- init_py = open (os .path .join (package , '__init__.py' )).read ()
14+ init_py = io . open (os .path .join (package , '__init__.py' ), encoding = 'utf-8' ).read ()
1515 return re .search ("__version__ = ['\" ]([^'\" ]+)['\" ]" , init_py ).group (1 )
1616
17-
1817def read_all (f ):
1918 with open (f ) as I :
2019 return I .read ()
You can’t perform that action at this time.
0 commit comments