Skip to content

Commit

Permalink
Remove Python 2.x import hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeReclaimers committed May 1, 2022
1 parent 93fe32d commit 85e79ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions neat/checkpoint.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
"""Uses `pickle` to save and restore populations (and other aspects of the simulation state)."""

import gzip
import pickle
import random
import time

try:
import cPickle as pickle # pylint: disable=import-error
except ImportError:
import pickle # pylint: disable=import-error

from neat.population import Population
from neat.reporting import BaseReporter

Expand Down

0 comments on commit 85e79ab

Please sign in to comment.