1. Andriy Kornatskyy
  2. wheezy.security

Commits

Andriy Kornatskyy  committed 0c88661

Minor clean up.

  • Participants
  • Parent commits 2840a2f
  • Branches default

Comments (0)

Files changed (1)

File src/wheezy/security/principal.py

View file
  • Ignore whitespace
     """ Container of user specific security information
     """
 
-    def __init__(self, id='', roles=None, alias='', extra=''):
+    def __init__(self, id='', roles=(), alias='', extra=''):
         self.id = id
-        self.roles = roles or ()
+        self.roles = roles
         self.alias = alias
         self.extra = extra