Index: trunk/pywikipedia/version.py |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | cur.execute( '''select local_relpath, repos_path, revision, changed_date from nodes order by revision desc, changed_date desc''') |
66 | 66 | name, tag, rev, date = cur.fetchone() |
67 | 67 | con.close() |
68 | | - tag = tag.rstrip(name) |
| 68 | + tag = tag[:len(tag) - len(name)] |
69 | 69 | date = time.gmtime(date/1000000) |
70 | 70 | else: |
71 | 71 | for i in range(3): |