Avram Lubkin

Results 36 comments of Avram Lubkin

With Enlighten 1.4.0, terminal sequences should be automatically detected.

I don't mind adding files at the top level, but I find for basic page navigation I have to add entries for each section. TOCs are already implied through headers...

I wasn't able to get the example to work. It would hang once Linux would shutdown, but wouldn't power cycle. This does seem to work for me ```python re_poweroff =...

Thanks! Using `Channel.expect()` is much cleaner. For my use case, either a reboot or a shutdown will work. I just need the OS to shutdown cleanly and not just power...

Turns out I do need to reboot. I tried to implement what you have in https://github.com/Rahix/tbot/issues/26#issuecomment-663580867. It works if I'm just running additional commands on the serial console within that...

Isn't `broad-except` on the catch side, not the raise side?

Now that I look at it, since Python 3.8, which is the version `SupportsIndex` was introduced, `int(Foo())` works, so that might be preferred to `Foo().__index__()`. It's still a different situation...

@clavedeluna, `str` only comes into play here because some `str` methods require arguments that include the `__index__()` method. This issue with the current message is the `__index__()` and `index()` methods...

It's definitely not correct as it is, because the message instructs the user to use `index()` which is unrelated. `int()` is probably the closest, but the usecase is slightly different....

It makes sense to me. I just wasn't sure where you were on suggestions that required an import. But I think that's the best option. It gives the user an...