String re bugfix
Asked by
Sam Scheele
This bug is associated with the `hp-setup` python script in the hplip project (installed on my Arch Linux machine as /usr/bin/hp-setup). In line 560, you match a regular expression against a variable called "nickname":
desc = nickname_
However, "nickname" is not a string but rather a bytes object (this is the standard result of calling `read()`). It ought to be decoded. This will fix the issue:
nickname = nickname.
desc = nickname_
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.