Hi All,
I have these files; which are Merge Request (ClearCase) files that are
created by a Perl CGI script (being re-written in Python, as the HTML/
JavaScript have been mixed with Perl, maintainability is zero)
MergeType::::co defromlabel::::
BLname::::BUILD MODS::::
OldLname::::::: :
BaseVersion:::: 6.9.1.24A::::
RequiredRelease ::::6.10.1.3::: :
Description:::: ::::
FixRelation:::: ::::
Dependencies::: :::::
LpAffected::::N o::::
CodeReview::::F irstName LastName::::
Testing::::Comp ile/Build;Designer; Smoketests;::::
OtherTesting::: :::::
Vobs::::ipsuppo rt;::::
Elements::::\ip support\ipbuild \Wizard\build.p l@@\main\buildm ods\3::::
i read this whole file into a string so i can search for the value of
Elements which is
\ipsupport\ipbu ild\Wizard\buil d.pl@@\main\bui ldmods\3
but this path is escaped
\\ipsupport\\ip build\\Wizard\\ build.pl@@\\mai n\\buildmods\\3
so when i try to escape a string containing that same path using any
of the os.path escaping methods doesnt
result in the correct escaped path. It either appends "C:\\" in front
of the string with all the backslashes escaped
or it converts the three(3) at then end to "x03" and a match doesnt
occur!
My question is, is there a function in Python that only escapes
backslashes?
Cheers