]> jfr.im git - erebus.git/blobdiff - modules/userinfo.py
change to use str.startswith
[erebus.git] / modules / userinfo.py
index be6e33be11b2b0810f97d626084c82f86752bf2c..bd150539bc023daf496ee413d7ae87abdb6cda81 100644 (file)
@@ -44,7 +44,7 @@ def getauth(thing):
                if thing.auth is not None:
                        return "#"+thing.auth
        elif isinstance(thing, basestring):
-               if thing[0] == "#":
+               if thing.startswith("#"):
                        return thing
                else:
                        if parent.user(thing).auth is not None: