GoogleCodeArchives / svnplot

Automatically exported from code.google.com/p/svnplot
0 stars 0 forks source link

Indendation errors in svnstats.py #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install svnplot 1.7.2
2. try to run svnlog2sqlite.py on it

What is the expected output? What do you see instead?

expected conversion of SVN logs to sqlite3 db, got traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/svnplot/svnplot.py", line
47, in <module>
    from svnplotmatplotlib import *
  File
"/usr/local/lib/python2.5/site-packages/svnplot/svnplotmatplotlib.py", line
23, in <module>
    import svnstats
  File "/usr/local/lib/python2.5/site-packages/svnplot/svnstats.py", line 356
    weekdaylist.append(daynames[int(dayofweek)])
                                               ^
IndentationError: unindent does not match any outer indentation level

What version of the product are you using? On what operating system?

svnlog-1.7.2, python2.5 on CentOS 4

Please provide any additional information below.

Indendation broken in lines 356:

        for dayofweek in range(0,7):
            commitcount = commits.get(dayofweek, 0)
            commits_list.append(commitcount)
           weekdaylist.append(daynames[int(dayofweek)])

and 375:

        for hourofday in range(0,24):
            commitcount = commits.get(hourofday, 0)
            commitlist.append(commitcount)
           hrofdaylist.append(int(hourofday))

Original issue reported on code.google.com by phloogz...@gmail.com on 3 May 2010 at 9:37

GoogleCodeExporter commented 9 years ago
Mixed up svnplot and pysqlite versions. svnplot is 0.6.1

Original comment by phloogz...@gmail.com on 3 May 2010 at 9:39

GoogleCodeExporter commented 9 years ago
fixed in the trunk. Will upload the new release today night.

Original comment by nitinbh...@gmail.com on 3 May 2010 at 1:19

GoogleCodeExporter commented 9 years ago
corrected. Download the current 0.6.1 installer.

Original comment by nitinbh...@gmail.com on 4 May 2010 at 6:30