##// END OF EJS Templates
diffs: fixed problem with rendering no newline at the end of file markers....
diffs: fixed problem with rendering no newline at the end of file markers. - fixes #5402

File last commit:

r1:854a839a default
r2380:8531a2ca default
Show More
util.py
10 lines | 211 B | text/x-python | PythonLexer
"""
Safe quoting method
"""
def safe_quote(obj):
# this is the SQLA 0.9 approach
if hasattr(obj, 'name') and hasattr(obj.name, 'quote'):
return obj.name.quote
else:
return obj.quote