Skip to content

Commit 1406074

Browse files
committed
Merge pull request #17 from JDong820/cleanup
Fixed mistakes.
2 parents e44a7c5 + bd3aede commit 1406074

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

jamo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
synth_hangul,
88
InvalidJamoError)
99

10-
__version__ = '0.3.1'
10+
__version__ = '0.3'

jamo/jamo.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def _value_to_jamo(value, jamo_class=None):
5353
return value
5454
# If given a hcj char or hcj integer
5555
if _value in VALID_HCJ:
56-
print("decoding hcj to jamo.")
5756
translations = {get_jamo_class(jamo): jamo for jamo, hcj in
5857
JAMO_TO_HCJ_TRANSLATIONS.items() if hcj == _value}
5958
# TODO: Add a custom exception for KeyError.
@@ -109,14 +108,10 @@ def _jamo_to_hangul_char(lead, vowel, tail=0):
109108
lead = _to_codepoint(_value_to_jamo(lead, "lead"))
110109
vowel = _to_codepoint(_value_to_jamo(vowel, "vowel"))
111110
tail = _to_codepoint(_value_to_jamo(tail, "tail")) if tail else 0
112-
print("_jamo_to_hangul_char called with: "
113-
"({}), ({}), ({})".format(hex(lead), hex(vowel), hex(tail)))
114-
print("({} ), ({} ), ({} )".format(chr(lead), chr(vowel), chr(tail)))
115111

116112
lead -= JAMO_LEAD_OFFSET
117113
vowel -= JAMO_VOWEL_OFFSET
118114
tail = tail - JAMO_TAIL_OFFSET if tail else 0
119-
print("calculated offsets: {}, {}, {}\n".format(lead, vowel, tail))
120115
return chr(tail + (vowel - 1) * 28 + (lead - 1) * 588 + JAMO_OFFSET)
121116

122117

0 commit comments

Comments
 (0)