Skip to content

Commit

Permalink
Merge pull request #7 from openedx/replace_text
Browse files Browse the repository at this point in the history
chore: updating deprecated method force_text with force_str
  • Loading branch information
awais786 authored Jul 4, 2023
2 parents e6e62e7 + df560f1 commit b2e291b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions require/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.core.files.base import File
from django.core.files.storage import FileSystemStorage
from django.contrib.staticfiles.storage import StaticFilesStorage, ManifestStaticFilesStorage
from django.utils.encoding import force_text
from django.utils.encoding import force_str

from require.conf import settings as require_settings
from require.helpers import resolve_require_url
Expand Down Expand Up @@ -136,9 +136,9 @@ def post_process(self, paths, dry_run=False, verbosity=1, **options):
compiled_storage = FileSystemStorage(env.build_dir)
# Walk the compiled directory, checking for modified assets.
for build_dirpath, _, build_filenames in os.walk(env.build_dir):
build_dirpath = force_text(build_dirpath)
build_dirpath = force_str(build_dirpath)
for build_filename in build_filenames:
build_filename = force_text(build_filename)
build_filename = force_str(build_filename)
# Determine asset name.
build_filepath = os.path.join(build_dirpath, build_filename)
build_name = build_filepath[len(env.build_dir)+1:]
Expand Down

0 comments on commit b2e291b

Please sign in to comment.