Skip to content

Commit

Permalink
Added string normalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottslewis authored and tcalmant committed Apr 26, 2018
1 parent 2b85869 commit 633eed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pelix/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,9 @@ def __init__(self, properties=None):
if not framework_uid:
framework_uid = str(uuid.uuid4())
# Normalize the UID: it must be a string
self.__properties[FRAMEWORK_UID] = framework_uid
self.__properties[FRAMEWORK_UID] = str(framework_uid)
# Also normalize the OSGI_FRAMEWORK_UID: it must be a string
self.__properties[OSGI_FRAMEWORK_UUID] = framework_uid
self.__properties[OSGI_FRAMEWORK_UUID] = str(framework_uid)

# Properties lock
self.__properties_lock = threading.Lock()
Expand Down

0 comments on commit 633eed3

Please sign in to comment.