Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/util/glob.py @ 298:16a5c337fcb9
FIX: peeking for byte strings on Python3 needs to convert from int to bytes
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 04 Mar 2025 09:01:42 +0100 |
| parents | 141a3aa0b403 |
| children | 1371ceb6fad6 |
comparison
equal
deleted
inserted
replaced
| 297:141a3aa0b403 | 298:16a5c337fcb9 |
|---|---|
| 218 | 218 |
| 219 """ | 219 """ |
| 220 if self._nch is not None: | 220 if self._nch is not None: |
| 221 return self._nch | 221 return self._nch |
| 222 self._nch = next(self._it, None) | 222 self._nch = next(self._it, None) |
| 223 if isinstance(self._nch, int): | |
| 224 self._nch = bytes((self._nch,)) | |
| 223 return self._nch | 225 return self._nch |
