def classdot2class(path):
    ''' Convert a path such as 'android.support.v4.app.ActivityCompat'
        into a string 'Landroid/support/v4/app/ActivityCompat'
        so we can change name of a class by d.CLASS_Landroid_support_v4_app_ActivityCompat.set_name(new_name)
    '''
    if path[0] == 'L' and path[-1] == ';':
        print path % "WARNING: %s already a Lclass; name"
        return path

    new_name = 'L' + path.replace('.', '/') + ';'
    return new_name
dataset/ETHPy150Open AndroBugs/AndroBugs_Framework/tools/modified/androguard/gui/helpers.py/classdot2class/swapped operands of `%`