r84964 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84963‎ | r84964 | r84965 >
Date:15:37, 29 March 2011
Author:diederik
Status:deferred
Tags:
Comment:
Fixed path issue.
Modified paths:
  • /trunk/tools/editor_trends/etl/enricher.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/enricher.py
@@ -441,8 +441,6 @@
442442 elif event == 'end' and elem.tag == '%s%s' % (namespace, 'page'):
443443 yield article
444444 elem.clear()
445 - for elem in article.values():
446 - elem.clear()
447445 article = {}
448446 article['revisions'] = []
449447 id = False
@@ -522,7 +520,7 @@
523521
524522
525523 def debug():
526 - path = '/media/wikipedia_dumps/batch2/'
 524+ path = '/mnt/wikipedia_dumps/batch2/'
527525 files = file_utils.retrieve_file_list(path, 'bz2')
528526 for file in files:
529527 filename = os.path.join(path, file)
@@ -531,7 +529,7 @@
532530
533531 def launcher_training():
534532 # launcher for creating training data
535 - path = '/media/wikipedia_dumps/batch2/'
 533+ path = '/mnt/wikipedia_dumps/batch2/'
536534 function = create_variables
537535 storage = 'csv'
538536 dataset = 'training'