projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix wrong usage of `isinstance`
[osm/RO.git]
/
osm_ro
/
utils.py
diff --git
a/osm_ro/utils.py
b/osm_ro/utils.py
index
592abc1
..
1e3a8ee
100644
(file)
--- a/
osm_ro/utils.py
+++ b/
osm_ro/utils.py
@@
-1,7
+1,7
@@
# -*- coding: utf-8 -*-
##
# -*- coding: utf-8 -*-
##
-# Copyright 2015 Telef
ónica Investigació
n y Desarrollo, S.A.U.
+# Copyright 2015 Telef
onica Investigacio
n y Desarrollo, S.A.U.
# This file is part of openmano
# All Rights Reserved.
#
# This file is part of openmano
# All Rights Reserved.
#
@@
-225,6
+225,8
@@
def expand_brackets(text):
:param text:
:return:
"""
:param text:
:return:
"""
+ if text is None:
+ return (None, )
start = text.find("[")
end = text.find("]")
if start < 0 or end < 0:
start = text.find("[")
end = text.find("]")
if start < 0 or end < 0: