Skip to content

Commit

Permalink
Apply ruff/pyupgrade rule UP036
Browse files Browse the repository at this point in the history
UP036 Version block is outdated for minimum Python version
  • Loading branch information
DimitriPapadopoulos committed Jan 14, 2025
1 parent f23529e commit cebec6f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mriqc/reports/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"""Encapsulates report generation functions."""

from itertools import product
from sys import version_info

import pandas as pd

Expand All @@ -34,18 +33,14 @@
def gen_html(csv_file, mod, csv_failed=None, out_file=None):
import os.path as op
from datetime import datetime, timezone
from io import StringIO as TextIO

from niworkflows.data import Loader

from mriqc.data.config import GroupTemplate

from .. import __version__ as ver

if version_info[0] > 2:
from io import StringIO as TextIO
else:
from io import BytesIO as TextIO

UTC = timezone.utc
load_data = Loader('mriqc')

Expand Down

0 comments on commit cebec6f

Please sign in to comment.