Changes between Version 3 and Version 6 of Ticket #29878


Ignore:
Timestamp:
Oct 24, 2018, 4:59:08 PM (6 years ago)
Author:
Tim Graham
Comment:

Tentatively accepting. I'm not a GeoDjango expert. I updated the ticket description to make the script compatible with Python 3 as Python 2 is no longer supported as of Django 2.0.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29878

    • Property Type UncategorizedBug
    • Property Cc Sergey Fedoseev added
    • Property Triage Stage UnreviewedAccepted
  • Ticket #29878 – Description

    v3 v6  
    4747        _new_objs = gc_objects()
    4848        leaked = {}
    49         for k, v in _new_objs.iteritems():
     49        for k, v in _new_objs.items():
    5050            old_v = _old_objs.get(k)
    5151            if old_v:
     
    5656                leaked[str(k)] = v
    5757
    58         print "Leaks: {}".format(leaked)
     58        print("Leaks: {}".format(leaked))
    5959
    6060        _new_objs = None
     
    7070
    7171if __name__ == '__main__':
    72     for i in xrange(10):
     72    for i in range(10):
    7373        t = threading.Thread(target=use_geos)
    7474        t.start()
Back to Top