Makes code much easier and fix a crash if the commit date includes a negative
timezone offset (like 'Mon Oct 14 13:13:03 2013 -0400').
#!/usr/bin/env python
import os
#!/usr/bin/env python
import os
import urllib
import csv
import datetime
import urllib
import csv
import datetime
from string import Template
from optparse import OptionParser
from string import Template
from optparse import OptionParser
last_tag_pattern = 'EMPATHY_3_10*'
upload_server = 'master.gnome.org'
last_tag_pattern = 'EMPATHY_3_10*'
upload_server = 'master.gnome.org'
commit_str = self.exec_cmd('git show %s' % (self.last_tag))
for line in commit_str.splitlines():
if line.startswith('Date:'):
commit_str = self.exec_cmd('git show %s' % (self.last_tag))
for line in commit_str.splitlines():
if line.startswith('Date:'):
- time_str = line[5:line.rfind('+')].strip()
- t = time.strptime(time_str)
- last_tag_date = time.strftime('%Y-%m-%d', t)
+ time_str = line[5:]
+ t = dateutil.parser.parse(time_str)
+ last_tag_date = t.strftime('%Y-%m-%d')
break
query = 'http://bugzilla.gnome.org/buglist.cgi?' \
break
query = 'http://bugzilla.gnome.org/buglist.cgi?' \