Skip to content

Commit

Permalink
Fix stringio
Browse files Browse the repository at this point in the history
  • Loading branch information
znick committed Jul 9, 2023
1 parent f81eaa6 commit 8a9ff4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anytask/courses/pythontask.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import csv
import datetime
import StringIO
from io import StringIO


class PythonTaskStat(object):
Expand Down Expand Up @@ -146,7 +146,7 @@ def tasks_list(request, course):


def _conver_group_stat_to_cvs(group_stat):
fn = StringIO.StringIO()
fn = StringIO()
fieldnames = ['group', 'name', 'score']
writer = csv.DictWriter(fn, fieldnames=fieldnames)

Expand Down

0 comments on commit 8a9ff4b

Please sign in to comment.