Modify two strings: 1138 and 1146
# cat -n dbtextdb.py | head -n 1146 | tail -n 10 1137 # Modified by Alexander "Ramzes" Rozes to prevent TypeError: a bytes-like object is required, not 'str' 1138 self.temp_file.write((header.strip() + '\n').encode()) 1139 1140 # write data 1141 for row in self.data: 1142 row_str = '' 1143 for col in columns: 1144 row_str = '%s:%s' % (row_str, row[col]) 1145 1146 self.temp_file.write((row_str[1:] + '\n').encode()) # Modified by Alexander "Ramzes" Rozes
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.