If I run the script as below:
$ python sitemap_gen.py --config=config.xml
I get these errors
sitemap_gen.py:551: SyntaxWarning: local name 'consumer' in
'ProduceURLs' shadows use of 'consumer' as global in nested scope
'PerFile'
def ProduceURLs(self, consumer):
sitemap_gen.py:551: SyntaxWarning: local name 'root_path' in
'ProduceURLs' shadows use of 'root_path' as global in nested scope
'PerFile'
def ProduceURLs(self, consumer):
sitemap_gen.py:551: SyntaxWarning: local name 'root_URL' in
'ProduceURLs' shadows use of 'root_URL' as global in nested scope
'PerFile'
def ProduceURLs(self, consumer):
Traceback (most recent call last):
File "sitemap_gen.py", line 211, in ?
class URL(object):
NameError: name 'object' is not defined
My server is running Python 2.1.3
Any ideas?