##// END OF EJS Templates
use shlex.split on editor hooks on Windows...
use shlex.split on editor hooks on Windows pipes.quote uses single-quotes, which is wrong on Windows. But the grouping is still correct after shlex.split. An alternative would be to use a cmd list, and not do any quoting.

File last commit:

r13379:974fa61b
r18836:e0a5359f
Show More
show_refs.py
20 lines | 393 B | text/x-python | PythonLexer
"""Simple script to show reference holding behavior.
This is used by a companion test case.
"""
from __future__ import print_function
import gc
class C(object):
def __del__(self):
pass
#print 'deleting object...' # dbg
if __name__ == '__main__':
c = C()
c_refs = gc.get_referrers(c)
ref_ids = list(map(id,c_refs))
print('c referrers:',list(map(type,c_refs)))