simplify as pagedir already is set

This commit is contained in:
Elan Ruusamäe 2012-09-18 02:04:29 +02:00
parent 04b73c9c68
commit de972b0374

View file

@ -145,7 +145,7 @@ def convert_editlog(pagedir, overwrite = False):
changes = []
pagedir = os.path.abspath(pagedir)
pagename = wikiname(pagedir)
pagelog = Page(request, pagename).getPagePath('edit-log', use_underlay = 0, isfile = 1)
pagelog = os.path.join(pagedir, 'edit-log')
edit_log = editlog.EditLog(request, filename = pagelog)
USEC = 1000000
for log in edit_log: