Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldies committed Feb 13, 2025
1 parent 1b036f6 commit de6d3a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cvat/apps/engine/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: MIT

import encodings
import codecs
import io
import json
import mimetypes
Expand Down Expand Up @@ -613,7 +613,7 @@ def serialize_annotations():
annotations = serialize_annotations()
target_annotations_file = os.path.join(target_dir, self.ANNOTATIONS_FILENAME) if target_dir else self.ANNOTATIONS_FILENAME
with zip_object.open(target_annotations_file, 'w') as f:
json.dump(annotations, encodings.utf_8.StreamWriter(f), separators=(',', ':'))
json.dump(annotations, codecs.getwriter('utf-8')(f), separators=(',', ':'))

def _export_task(self, zip_obj, target_dir=None):
self._write_data(zip_obj, target_dir)
Expand Down
2 changes: 1 addition & 1 deletion cvat/requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ djangorestframework>=3.15.2,<4
drf-spectacular==0.26.2
furl==2.1.0
google-cloud-storage==1.42.0
json-stream>=2.0
lxml>=5.2.1,<6
natsort==8.0.0
numpy~=1.22.2
Expand All @@ -57,4 +58,3 @@ rq==1.16.0
rules>=3.3
Shapely==1.7.1
xmlsec>=1.3.14,<2
json-stream>=2.0

0 comments on commit de6d3a1

Please sign in to comment.