aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2017-08-31 11:57:03 +0200
committerRahiel Kasim <rahielkasim@gmail.com>2017-08-31 11:57:03 +0200
commit350dad7a208d220c1eea85fdda7accd501aa83b2 (patch)
tree9f064034652c93d51bfd8342f0564d5caf7a383e
parentfcb4656973592a5422df4e62a82ee9aad695d208 (diff)
don't mutate Quran.surah_names in make_index
-rw-r--r--bismillahbot/quran.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bismillahbot/quran.py b/bismillahbot/quran.py
index 1fd323f..d3d31c9 100644
--- a/bismillahbot/quran.py
+++ b/bismillahbot/quran.py
@@ -168,7 +168,7 @@ class Quran:
def make_index():
"""An index of the Surahs in the Quran, formatted to send over Telegram."""
- chapters = Quran.surah_names
+ chapters = Quran.surah_names[:]
# padding...
for i in range(9):
chapters[i] = " " + chapters[i] + " " * (14 - len(chapters[i]))