Package pyarabic :: Module arabrepr
[hide private]
[frames] | no frames]

Source Code for Module pyarabic.arabrepr

 1  #!/usr/bin/python 
 2  # -*-coding:UTF-8-*- 
 3  """ 
 4  Unicode represention texts 
 5  @author: Taha Zerrouki 
 6  @contact: taha dot zerrouki at gmail dot com 
 7  @copyright: Taha Zerrouki 
 8  @license: GPL 
 9  @date:2014/03/01 
10  @version: 0.1 
11  """ 
12  import repr as reprlib 
13 -class ArabicRepr(reprlib.Repr):
14 """ Unicode representation"""
15 - def repr_unicode(self, obj, level):
16 "Modify unicode display " 17 return u"u'%s'" % obj
18