예제 #1
0
def nearest_user_location():
    """
    Returns:
        tuple: the filename and line number of the nearest user location
    """
    bt = bjam.backtrace()
    if not bt:
        return None
    last = bt[-1]
    return last[0], last[1]
예제 #2
0
 def __init__(self):
     raw = bjam.backtrace()
     self.raw_ = raw
예제 #3
0
파일: errors.py 프로젝트: Cabriter/abelkhan
 def __init__(self):
     raw = bjam.backtrace()
     self.raw_ = raw