mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed xmlrpc_test.fuzzy_digits for Fedora12
This commit is contained in:
parent
d6ca88f331
commit
e9dc9de23a
@ -32,7 +32,7 @@ from ipalib import errors
|
|||||||
# Matches a gidnumber like '1391016742'
|
# Matches a gidnumber like '1391016742'
|
||||||
# FIXME: Does it make more sense to return gidnumber, uidnumber, etc. as `int`
|
# FIXME: Does it make more sense to return gidnumber, uidnumber, etc. as `int`
|
||||||
# or `long`? If not, we still need to return them as `unicode` instead of `str`.
|
# or `long`? If not, we still need to return them as `unicode` instead of `str`.
|
||||||
fuzzy_digits = Fuzzy('^\d+$', type=str)
|
fuzzy_digits = Fuzzy('^\d+$', type=basestring)
|
||||||
|
|
||||||
# Matches an ipauniqueid like u'784d85fd-eae7-11de-9d01-54520012478b'
|
# Matches an ipauniqueid like u'784d85fd-eae7-11de-9d01-54520012478b'
|
||||||
fuzzy_uuid = Fuzzy(
|
fuzzy_uuid = Fuzzy(
|
||||||
|
@ -210,7 +210,7 @@ class Fuzzy(object):
|
|||||||
self.re = re.compile(regex)
|
self.re = re.compile(regex)
|
||||||
if type is None:
|
if type is None:
|
||||||
type = unicode
|
type = unicode
|
||||||
assert type in (unicode, str)
|
assert type in (unicode, str, basestring)
|
||||||
self.regex = regex
|
self.regex = regex
|
||||||
self.type = type
|
self.type = type
|
||||||
self.test = test
|
self.test = test
|
||||||
|
Loading…
Reference in New Issue
Block a user