Xqt closed this task as "Invalid".
Xqt added a comment.

  The redirection work as follows:
  
  `py -c "import pywikibot; pywikibot.output('foo bar')" > file.txt 2>&1`
  
  which redirects stderr (2) to 1 (stdout) or using stdout directly:
  
  `py -c "import pywikibot; pywikibot.stdout('foo bar')" > file.txt`

TASK DETAIL
  https://phabricator.wikimedia.org/T98725

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Xqt, pywikibot-bugs-list, valhallasw, Aklapper, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to