From c0f02c5864921818d18f260030b017d4900afbf4 Mon Sep 17 00:00:00 2001
From: David Fairbrother <DavidFair@users.noreply.github.com>
Date: Wed, 26 Apr 2017 11:20:59 +0100
Subject: [PATCH] Re #19156 Fixed usage of deprecated Python 2 method

---
 scripts/test/ISISPowderRunDetailsTest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/test/ISISPowderRunDetailsTest.py b/scripts/test/ISISPowderRunDetailsTest.py
index 67cc059abf9..cfde0b28f84 100644
--- a/scripts/test/ISISPowderRunDetailsTest.py
+++ b/scripts/test/ISISPowderRunDetailsTest.py
@@ -121,7 +121,7 @@ class MockInstSettings(object):
 
     @staticmethod
     def gen_random_string():
-        return ''.join(random.choice(string.lower(s)) for s in range(10))
+        return ''.join(random.choice(string.ascii_lowercase) for _ in range(10))
 
 if __name__ == "__main__":
     unittest.main()
-- 
GitLab