Created
January 10, 2015 10:37
-
-
Save young40/2b0b6047497fcd0cfda3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
Content = open("ui.ccs").read() | |
ContentArray = Content.split("\n") | |
newContent = "" | |
Skip = False | |
for c in ContentArray: | |
if "<<<<<<<" in c: | |
continue | |
if "=======" in c: | |
Skip = True | |
continue | |
if ">>>>>>>" in c: | |
Skip = False | |
continue | |
if Skip: | |
continue | |
newContent += c + "\n" | |
newContent = newContent[:-1] | |
fp = open("ui.ccs", "w") | |
fp.write(newContent) | |
fp.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment