Menu

#402 Fix flake8

None
closed-accepted
None
2020-08-10
2020-08-09
No

./docutils/writers/manpage.py:51:13: F821 undefined name 'xrange'

Discussion

  • Takeshi KOMIYA

    Takeshi KOMIYA - 2020-08-09

    Did you read the code? It is a code only available under python2. And docutils has still supported it.

    if sys.version_info < (3, 0):
        range = xrange
    

    What are you expected?

     
  • Chris Sewell

    Chris Sewell - 2020-08-09

    What are you expected?

    To add # noqa: F821

     
  • Takeshi KOMIYA

    Takeshi KOMIYA - 2020-08-09

    Thanks! Here is a patch to fix it :-)

     
  • Chris Sewell

    Chris Sewell - 2020-08-09

    thanks :)

     
  • engelbert gruber

    • status: open --> closed-accepted
    • assigned_to: engelbert gruber
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.