I'm using PySVN to get diff between 2 links, and the function I'm using returns a list with '<>':
[<PysvnDiffSummary u'sdk_include/EthernetScannerSDK.h'>, <PysvnDiffSummary u'sdk_include/EthernetScannerSDKDefine.h'>, <PysvnDiffSummary u'sdk_include/CMakeLists.txt'>]
What exactly is this type of data? And how can I acces only the part after " ' "? (E.G. from < PysvnDiffSummary u'sdk_include/EthernetScannerSDK.h' > I only want sdk_include/EthernetScannerSDK.h, without using .split(' \' ') if possible.
It's a representation of PySvnDiffSummary object. Try using dir(Object) to get it's attributes and from there. It's probably going to be something like object.url
so when you find out what the attribute is (from comments elsewhere, it's __name
), you'll want something like:
urls = [sumary.__name for summary in list]
Working list with just what you want :)