[p4python] run_print problem

John Wiseman john.wiseman at rovicorp.com
Wed Oct 21 15:29:08 PDT 2009


I get an error when trying to use run_print, though run(Œprint¹, ...) works
OK:

>>> pprint.pprint(p4.run('print', '-a', 'r4.py'))
[{'action': 'edit',
  'change': '14506',
  'depotFile': '//depot/users/wiseman/r4/r4.py',
  'rev': '18',
  'time': '1254781186',
  'type': 'kxtext'},
 '#!/usr/bin/env python\n\n# Copyright...'
 # ...
 }]

>>> pprint.pprint(p4.run_print('-a', 'r4.py'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/P4.py", line 379, in run_print
    result[-1] += line
TypeError: cannot concatenate 'str' and 'dict' objects


Thanks,
John




More information about the p4python mailing list