Commit 93453635 authored by Boris Kocherov's avatar Boris Kocherov Committed by Kazuhiko Shiozaki

handler/ooo: add `long` in processed types

that can happen on the environment where UNO library is built with Python 2.

/cc @rafael @gabriel @kazuhiko 

/reviewed-on !5
parent d2fa9643
......@@ -35,11 +35,17 @@ except ImportError:
import helper_util
from getopt import getopt, GetoptError
# python3 support
try:
basestring
except NameError:
basestring = str
try:
long
except NameError:
long = int
__doc__ = """
usage: unomimemapper [options]
......@@ -76,7 +82,7 @@ class UnoMimemapper(object):
for obj in iter(element_list):
if obj.Name in ignore_name_list:
continue
if not isinstance(obj.Value, (bool, int, basestring, tuple)):
if not isinstance(obj.Value, (bool, int, long, basestring, tuple)):
continue
element_dict[obj.Name] = obj.Value
service_dict[name] = element_dict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment