mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Include local copy of UUID generator for Python 2.4.
Python 2.5+ has a built-in RFC 4122-compliant UUID generator. Include a copy of this file in our library and import it in a way that it will work with Python 2.4.
This commit is contained in:
@@ -877,6 +877,11 @@ from frontend import Object, Method, Property
|
||||
from parameters import DefaultFrom, Bool, Flag, Int, Float, Bytes, Str, Password
|
||||
from parameters import BytesEnum, StrEnum
|
||||
|
||||
try:
|
||||
import uuid
|
||||
except ImportError:
|
||||
import ipauuid as uuid
|
||||
|
||||
def create_api(mode='dummy'):
|
||||
"""
|
||||
Return standard `plugable.API` instance.
|
||||
|
||||
Reference in New Issue
Block a user