From 1c931bc68a57f289b36e3295ea56b39377177e28 Mon Sep 17 00:00:00 2001
From: Tim O'Donnell <timodonnell@gmail.com>
Date: Mon, 19 Feb 2018 15:06:15 -0500
Subject: [PATCH] py 2.7 fix

---
 mhcflurry/train_allele_specific_models_command.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mhcflurry/train_allele_specific_models_command.py b/mhcflurry/train_allele_specific_models_command.py
index dddcc8f2..d06016e2 100644
--- a/mhcflurry/train_allele_specific_models_command.py
+++ b/mhcflurry/train_allele_specific_models_command.py
@@ -350,7 +350,7 @@ def run(argv=sys.argv[1:]):
                         len(new_model_names),
                         time.time() - save_start,
                         args.out_models_dir))
-                unsaved_predictors.clear()
+                unsaved_predictors = []
                 last_save_time = time.time()
 
         print("Saving final predictor to: %s" % args.out_models_dir)
-- 
GitLab