Hello community, here is the log from the commit of package python-icalendar for openSUSE:Factory checked in at 2015-09-27 08:40:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-icalendar (Old) and /work/SRC/openSUSE:Factory/.python-icalendar.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-icalendar" Changes: -------- --- /work/SRC/openSUSE:Factory/python-icalendar/python-icalendar.changes 2015-08-05 06:49:48.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-icalendar.new/python-icalendar.changes 2015-09-27 08:39:52.000000000 +0200 @@ -1,0 +2,11 @@ +Fri Sep 25 13:27:07 UTC 2015 - mich...@stroeder.com + +- Update to 3.9.1: + - Fix vPeriod.__repr__. [spacekpe] + - Improve foldline() performance. This improves the foldline + performance, especially for large strings like base64-encoded + inline attachements. In some cases (1MB string) from 7 Minutes + to less than 20ms for ASCII data and 500ms for non-ASCII data. + Ref: #163. [emfree] + +------------------------------------------------------------------- Old: ---- icalendar-3.9.0.tar.gz New: ---- icalendar-3.9.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-icalendar.spec ++++++ --- /var/tmp/diff_new_pack.FsQIdY/_old 2015-09-27 08:39:52.000000000 +0200 +++ /var/tmp/diff_new_pack.FsQIdY/_new 2015-09-27 08:39:52.000000000 +0200 @@ -20,7 +20,7 @@ %define modname icalendar Name: python-%{modname} -Version: 3.9.0 +Version: 3.9.1 Release: 0 Summary: Python parser/generator of iCalendar files package License: BSD-2-Clause ++++++ icalendar-3.9.0.tar.gz -> icalendar-3.9.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/icalendar-3.9.0/CHANGES.rst new/icalendar-3.9.1/CHANGES.rst --- old/icalendar-3.9.0/CHANGES.rst 2015-03-24 13:00:21.000000000 +0100 +++ new/icalendar-3.9.1/CHANGES.rst 2015-09-08 16:07:59.000000000 +0200 @@ -2,6 +2,19 @@ Changelog ========= +3.9.1 (2015-09-08) +------------------ + +- Fix ``vPeriod.__repr__``. + [spacekpe] + +- Improve foldline() performance. This improves the foldline performance, + especially for large strings like base64-encoded inline attachements. In some + cases (1MB string) from 7 Minutes to less than 20ms for ASCII data and 500ms + for non-ASCII data. Ref: #163. + [emfree] + + 3.9.0 (2015-03-24) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/icalendar-3.9.0/PKG-INFO new/icalendar-3.9.1/PKG-INFO --- old/icalendar-3.9.0/PKG-INFO 2015-03-24 13:00:35.000000000 +0100 +++ new/icalendar-3.9.1/PKG-INFO 2015-09-08 16:08:12.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: icalendar -Version: 3.9.0 +Version: 3.9.1 Summary: iCalendar parser/generator Home-page: https://github.com/collective/icalendar Author: Plone Foundation @@ -109,6 +109,19 @@ Changelog ========= + 3.9.1 (2015-09-08) + ------------------ + + - Fix ``vPeriod.__repr__``. + [spacekpe] + + - Improve foldline() performance. This improves the foldline performance, + especially for large strings like base64-encoded inline attachements. In some + cases (1MB string) from 7 Minutes to less than 20ms for ASCII data and 500ms + for non-ASCII data. Ref: #163. + [emfree] + + 3.9.0 (2015-03-24) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/icalendar-3.9.0/setup.py new/icalendar-3.9.1/setup.py --- old/icalendar-3.9.0/setup.py 2015-03-24 13:00:21.000000000 +0100 +++ new/icalendar-3.9.1/setup.py 2015-09-08 16:07:59.000000000 +0200 @@ -3,7 +3,7 @@ import sys -version = '3.9.0' +version = '3.9.1' shortdesc = 'iCalendar parser/generator' longdesc = codecs.open('README.rst', encoding='utf-8').read() longdesc += codecs.open('CHANGES.rst', encoding='utf-8').read() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/icalendar-3.9.0/src/icalendar/parser.py new/icalendar-3.9.1/src/icalendar/parser.py --- old/icalendar-3.9.0/src/icalendar/parser.py 2015-03-24 13:00:21.000000000 +0100 +++ new/icalendar-3.9.1/src/icalendar/parser.py 2015-09-08 16:07:59.000000000 +0200 @@ -72,17 +72,26 @@ assert isinstance(line, compat.unicode_type) assert u'\n' not in line - ret_line = u'' + # Use a fast and simple variant for the common case that line is all ASCII. + try: + line.encode('ascii') + except (UnicodeEncodeError, UnicodeDecodeError): + pass + else: + return fold_sep.join(line[i:i+limit-1] for i in + range(0, len(line), limit-1)) + + ret_chars = [] byte_count = 0 for char in line: char_byte_len = len(char.encode(DEFAULT_ENCODING)) byte_count += char_byte_len if byte_count >= limit: - ret_line += fold_sep + ret_chars.append(fold_sep) byte_count = char_byte_len - ret_line += char + ret_chars.append(char) - return ret_line + return u''.join(ret_chars) ################################################################# diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/icalendar-3.9.0/src/icalendar/prop.py new/icalendar-3.9.1/src/icalendar/prop.py --- old/icalendar-3.9.0/src/icalendar/prop.py 2015-03-24 13:00:21.000000000 +0100 +++ new/icalendar-3.9.1/src/icalendar/prop.py 2015-09-08 16:07:59.000000000 +0200 @@ -535,7 +535,7 @@ p = (self.start, self.duration) else: p = (self.start, self.end) - return 'vPeriod(%r)' % p + return 'vPeriod(%r)' % (p, ) class vWeekday(compat.unicode_type): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/icalendar-3.9.0/src/icalendar/tests/test_timezoned.py new/icalendar-3.9.1/src/icalendar/tests/test_timezoned.py --- old/icalendar-3.9.0/src/icalendar/tests/test_timezoned.py 2015-03-24 13:00:21.000000000 +0100 +++ new/icalendar-3.9.1/src/icalendar/tests/test_timezoned.py 2015-09-08 16:07:59.000000000 +0200 @@ -158,12 +158,17 @@ tz = cal.walk('VEVENT')[0]['DTSTART'][0].dt.tzinfo self.assertEqual(str(tz), 'custom_America/New_York') pytz_new_york = pytz.timezone('America/New_York') - # pytz's information starts earlier, the VTIMEZONE transition times - # go on longer into the future - self.assertEqual(tz._utc_transition_times[:142], - pytz_new_york._utc_transition_times[95:]) - self.assertEqual(tz._transition_info[0:142], - pytz_new_york._transition_info[95:]) + # for reasons (tm) the locally installed version of the time zone + # database isn't always complete, therefore we only compare some + # transition times + ny_transition_times = list() + ny_transition_info = list() + for num, date in enumerate(pytz_new_york._utc_transition_times): + if datetime.datetime(1967, 4, 30, 7, 0) <= date <= datetime.datetime(2037, 11, 1, 6, 0): + ny_transition_times.append(date) + ny_transition_info.append(pytz_new_york._transition_info[num]) + self.assertEqual(tz._utc_transition_times[:142], ny_transition_times) + self.assertEqual(tz._transition_info[0:142], ny_transition_info) self.assertIn( (datetime.timedelta(-1, 72000), datetime.timedelta(0, 3600), 'EDT'), tz._tzinfos.keys() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/icalendar-3.9.0/src/icalendar.egg-info/PKG-INFO new/icalendar-3.9.1/src/icalendar.egg-info/PKG-INFO --- old/icalendar-3.9.0/src/icalendar.egg-info/PKG-INFO 2015-03-24 13:00:29.000000000 +0100 +++ new/icalendar-3.9.1/src/icalendar.egg-info/PKG-INFO 2015-09-08 16:08:02.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: icalendar -Version: 3.9.0 +Version: 3.9.1 Summary: iCalendar parser/generator Home-page: https://github.com/collective/icalendar Author: Plone Foundation @@ -109,6 +109,19 @@ Changelog ========= + 3.9.1 (2015-09-08) + ------------------ + + - Fix ``vPeriod.__repr__``. + [spacekpe] + + - Improve foldline() performance. This improves the foldline performance, + especially for large strings like base64-encoded inline attachements. In some + cases (1MB string) from 7 Minutes to less than 20ms for ASCII data and 500ms + for non-ASCII data. Ref: #163. + [emfree] + + 3.9.0 (2015-03-24) ------------------