Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
add description
Commit Description:
add description
import sys
from browser import console
def print_exc ( file = sys . stderr ):
exc = __BRYTHON__ . current_exception
if isinstance ( exc , SyntaxError ):
file . write ( ' \n module %s line %s ' % ( exc . args [ 1 ], exc . args [ 2 ]))
offset = exc . args [ 3 ]
file . write ( ' \n ' + exc . args [ 4 ])
file . write ( ' \n ' + offset * ' ' + '^' )
else :
file . write ( exc . info )
file . write ( ' \n ' + exc . __name__ )
if exc . args :
file . write ( ': %s ' % exc . args [ 0 ])
file . write ( ' \n ' )
def format_exc ( limit = None , chain = True ):
exc = __BRYTHON__ . current_exception
res = exc . info + ' \n ' + exc . __name__
if exc . args :
res += ': ' + exc . args [ 0 ]
return res + ' \n '
def format_exception ( _type , value , tb , limit = None , chain = True ):
return [ ' %s \n ' % _type , ' %s \n ' % value ]
def extract_tb ( tb , limit = None ):
return tb
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings