We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4231a commit 47dc979Copy full SHA for 47dc979
arabic_reshaper.py
@@ -140,13 +140,13 @@
140
]
141
142
def get_reshaped_glyph(target, location):
143
- if ARABIC_GLYPHS.has_key(target):
+ if target in ARABIC_GLYPHS:
144
return ARABIC_GLYPHS[target][location]
145
else:
146
return target
147
148
def get_glyph_type(target):
149
150
return ARABIC_GLYPHS[target][5]
151
152
return 2
@@ -266,7 +266,7 @@ def reshape_it(unshaped_word):
266
267
268
def is_arabic_character(target):
269
- return ARABIC_GLYPHS.has_key(target) or target in HARAKAT
+ return target in ARABIC_GLYPHS or target in HARAKAT
270
271
def get_words(sentence):
272
if sentence:
0 commit comments