##// END OF EJS Templates
tests: Adapt test to new mercurial version (3.8.2)...
tests: Adapt test to new mercurial version (3.8.2) Mercurial changed their diff algorithm a little bit which leads to one more added and delted line. But the result is the same.

File last commit:

r1:854a839a default
r140:fd19366c 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