Skip to content

Commit 272eccd

Browse files
committed
Fixed error while pretty-printing of supported languages
1 parent abfc188 commit 272eccd

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
What's inside:
1+
What's changed?:
22
--------------
33

4-
1.4.0 (17/08/2021)
4+
1.5.0 (20/08/2021)
5+
------------------
6+
* Fixed error while pretty-printing of supported languages.
7+
8+
1.4.2 (17/08/2021)
59
------------------
610
* Added support for Translation into multiple languages.
711
* Can query out list of supporting translation languages.

PyDictAPI/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"""
7878
__author__ = "Shawan Mandal"
7979
__email__ = "imshawan.dev049@gmail.com"
80-
__version__ = "1.4.2"
80+
__version__ = "1.5.0"
8181

8282
try:
8383
from .scrape import *

PyDictAPI/translator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def __prettyPrint(self):
5555
"""
5656
### Pretty prints text
5757
"""
58-
data = self.__SUPPORTED_LANGUAGES['sl']
58+
SUPPORTED_LANGUAGES = json.loads(self.__SUPPORTED_LANGUAGES)
59+
data = SUPPORTED_LANGUAGES['sl']
5960
prettyText = self.__prettyText
6061
for key in data.keys():
6162
prettyText += key + ": \t" + data[key] + "\n"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
setuptools.setup(
1515
name="PyDictAPI",
16-
version="1.4.2",
16+
version="1.5.0",
1717
author="Shawan Mandal",
1818
author_email="imshawan.dev049@gmail.com",
19-
description="A simple Dictionary and Translator Module for Python",
19+
description="An advanced Dictionary and Translator Module for Python",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",
2222
url="https://github.com/imshawan/PyDictAPI",

0 commit comments

Comments
 (0)