Ticket #3625: management-rsplit-python23.diff

File management-rsplit-python23.diff, 744 bytes (added by Antti Kaihola, 18 years ago)

work around rsplit

  • home/akaihola/dl/prg/www/django/django/core/management.py

     
    13551355            if verbosity > 1:
    13561356                print "Checking %s for fixtures..." % humanize(fixture_dir)
    13571357            try:
    1358                 fixture_name, format = fixture_label.rsplit('.', 1)
     1358                parts = fixture_label.split('.')
     1359                fixture_name, format = '.'.join(parts[:-1]), parts[-1]
    13591360                formats = [format]
    13601361            except ValueError:
    13611362                fixture_name = fixture_label
Back to Top