diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-11-26 20:26:29 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2012-11-26 23:39:45 +0100 |
commit | c279c575950b08e45f5f1d9c7935716a76d67139 (patch) | |
tree | 90599a89d8577c86819867c89c9ff270e2bf10bf /wizards/com/sun/star/wizards/text/TextFieldHandler.py | |
parent | 944a7aa48aefdcafddcc75a5bfff68eeb6d4e343 (diff) |
pywizards: No need to use unicodedata here
Change-Id: I30eb17dd740978e2ce03ada0ec11a4db65205f41
Diffstat (limited to 'wizards/com/sun/star/wizards/text/TextFieldHandler.py')
-rw-r--r-- | wizards/com/sun/star/wizards/text/TextFieldHandler.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.py b/wizards/com/sun/star/wizards/text/TextFieldHandler.py index f6f251e3a125..dfb4d0bd47da 100644 --- a/wizards/com/sun/star/wizards/text/TextFieldHandler.py +++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.py @@ -17,7 +17,6 @@ # import traceback import time -import unicodedata from ..common.PropertyNames import PropertyNames from com.sun.star.util import DateTime @@ -105,9 +104,7 @@ class TextFieldHandler(object): if xPropertySet.PropertySetInfo.hasPropertyByName( _PropertyName): oValue = xPropertySet.getPropertyValue(_PropertyName) - sValue = unicodedata.normalize( - 'NFKD', oValue).encode('ascii','ignore') - if sValue == _aPropertyValue: + if oValue == _aPropertyValue: return xProperty return None except KeyError: |