synapse/util/caches/__init__.py
def intern_string(string):
    """Takes a (potentially) unicode string and interns it if it's ascii
    """
    if string is None:
        return None

    try:
        string = string.encode("ascii")
        return intern(string)
    except UnicodeEncodeError:
        return string
Takes a (potentially) unicode string and interns it if it's ascii
    
Takes a (potentially) unicode string and interns it if it's ascii
Takes a ( potentially ) unicode string and interns it if it ' s ascii
def intern_string(string):
    if string is None:
        return None
    try:
        string = string.encode("ascii")
        return intern(string)
    except UnicodeEncodeError:
        return string
def intern_string ( string ) : if string is None : return None try : string = string . encode ( "ascii" ) return intern ( string ) except UnicodeEncodeError : return string
Takes a (potentially) unicode string and interns it if it's ascii
Takes a ( potentially ) unicode string and interns it if it ' s ascii
"""Takes a (potentially) unicode string and interns it if it's ascii
    """
string