484
485
486def unicode_urlencode(obj: t.Any, charset: str = "utf-8", for_qs: bool = False) -> str:
487 import warnings488
489 warnings.warn(
490 "'unicode_urlencode' has been renamed to 'url_quote'. The old"
1"""Parse tokens from the lexer into nodes for the compiler."""
2import typing
3import typing as t 4
5from . import nodes
6from .exceptions import TemplateAssertionError
3import random
4import re
5import typing
6import typing as t 7import warnings
8from collections import abc
9from itertools import chain
4import os
5import sys
6import typing
7import typing as t 8import weakref
9from collections import ChainMap
10from functools import lru_cache
A module or an import name is reimported multiple times. This can be confusing and should be fixed. Please refer to the occurrence message to see the reimported name and the line number where it was imported for the first time.
import os
from os import path
from sys import path
import os
Here, the import name path
from the module os
has been imported twice.
import os
from os import path