Skip to content

Commit

Permalink
Check if readline.__doc__ is None (#29)
Browse files Browse the repository at this point in the history
## Changes
In certain Windows installs, readline.__doc__ is None. Added a check
before iterating.
## Issue
Improving Windows compatibility #9 
## Related pull request
Add compatibility for Windows #14 
## Inspiration
[Add handling for Windows "readline.__doc__ is NoneType"
error](clarkperkins/click-shell#11)

---------

Co-authored-by: Mariusz Kupidura <2480867+fwkz@users.noreply.github.com>
  • Loading branch information
DaniZaha and fwkz committed Mar 4, 2024
1 parent c4bb065 commit 16fee0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riposte/riposte.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def is_libedit():
return "libedit" in readline.__doc__
return readline.__doc__ and "libedit" in readline.__doc__


class Riposte(PrinterMixin):
Expand Down

0 comments on commit 16fee0e

Please sign in to comment.