Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

revert changes to normalize_iCalStr() & diff_iCalStrs()

  • Loading branch information
bgaya committed Apr 24, 2014
1 parent c842b4d commit d501a3d6ae6d39655985f5b27462c65ee07a6e66
Showing with 3 additions and 5 deletions.
  1. +3 −5 twistedcaldav/ical.py
@@ -3777,15 +3777,13 @@ def normalize_iCalStr(icalstr):
pos = line.find(";X-CALENDARSERVER-DTSTAMP=")
if pos != -1:
lines[ctr] = line[:pos] + line[pos + len(";X-CALENDARSERVER-DTSTAMP=") + 16:]
icalstr = "\r\n".join(lines) + "\r\n"

return str(Component.fromString(icalstr))
icalstr = "\r\n".join(lines)
return icalstr + "\r\n"



def diff_iCalStrs(icalstr1, icalstr2):
"""
"""

icalstr1 = normalize_iCalStr(icalstr1).splitlines()
icalstr2 = normalize_iCalStr(icalstr2).splitlines()
return "\n".join(unified_diff(icalstr1, icalstr2))

0 comments on commit d501a3d

Please sign in to comment.
You can’t perform that action at this time.