1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

removed unnecessary use of seek()

This commit is contained in:
Alyssa Bigley
2021-06-07 14:29:38 -04:00
parent ecd84d7c43
commit 3549fc07f6

@ -246,7 +246,6 @@ class CSVFileField(forms.FileField):
def to_python(self, file):
records = []
file.seek(0)
csv_str = file.read().decode('utf-8')
reader = csv.reader(csv_str.splitlines())