Lines Matching refs:NUL
79 NUL = b"\0" # the null character
166 return s[:length] + (length - len(s)) * NUL
210 s = bytes("%0*o" % (digits - 1, n), "ascii") + NUL
431 self.__write(self.name.encode("iso-8859-1", "replace") + NUL)
495 if not s or s == NUL:
500 if not s or s == NUL:
694 buf += NUL * length
1149 payload += (BLOCKSIZE - remainder) * NUL
1157 name = name.encode(encoding, errors) + NUL
1228 if buf.count(NUL) == BLOCKSIZE:
1988 self.fileobj.write(NUL * (BLOCKSIZE * 2))
1994 self.fileobj.write(NUL * (RECORDSIZE - remainder))
2233 self.fileobj.write(NUL * (BLOCKSIZE - remainder))