Lines Matching full:which
30 ? return a string in which the characters represent the flags
116 def flags(self, *which): argument
119 if which:
120 if len(which) > 1:
122 which = which[0]
123 else: which = '?'
126 if 'n' in which: l_flags = l_flags | os.O_NDELAY
127 if 'a' in which: l_flags = l_flags | os.O_APPEND
128 if 's' in which: l_flags = l_flags | os.O_SYNC
132 if '=' not in which:
134 if '!' in which: l_flags = cur_fl & ~ l_flags
139 if 'c' in which:
140 arg = ('!' not in which) # 0 is don't, 1 is do close on exec
143 if '?' in which:
144 which = '' # Return current flags
146 if os.O_APPEND & l_flags: which = which + 'a'
148 which = which + 'c'
149 if os.O_NDELAY & l_flags: which = which + 'n'
150 if os.O_SYNC & l_flags: which = which + 's'
151 return which