Skip to content

Commit 3a909cb

Browse files
committed
Update docstrings
1 parent 153b227 commit 3a909cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/axelrod_fortran/shared_library_manager.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def find_shared_library(self, shared_library_name):
5454
return find_library(
5555
shared_library_name.replace("lib", "").replace(".so", ""))
5656

57-
def load_dll_copy(self):
58-
"""Load a new copy of the shared library."""
59-
# Copy the library file to a new location so we can load the copy.
57+
def create_library_copy(self):
58+
"""Create a new copy of the shared library."""
59+
# Copy the library file to a new (temp) location.
6060
temp_directory = tempfile.gettempdir()
6161
copy_number = len(self.filenames)
6262
new_filename = os.path.join(
@@ -73,14 +73,14 @@ def load_dll_copy(self):
7373

7474
def next_player_index(self, name):
7575
"""Determine the index of the next free shared library copy to
76-
allocate for the player. If none is available then load another copy."""
76+
allocate for the player. If none is available then make another copy."""
7777
# Is there a free index?
7878
if len(self.player_next[name]) > 0:
7979
return self.player_next[name].pop()
8080
# Do we need to load a new copy?
8181
player_count = len(self.player_indices[name])
8282
if player_count == len(self.filenames):
83-
self.load_dll_copy()
83+
self.create_library_copy()
8484
return player_count
8585
# Find the first unused index
8686
for i in range(len(self.filenames)):
@@ -89,8 +89,8 @@ def next_player_index(self, name):
8989
raise ValueError("We shouldn't be here.")
9090

9191
def get_filename_for_player(self, name):
92-
"""For a given player return a copy of the shared library for use
93-
in a Player class, along with an index for later releasing."""
92+
"""For a given player return a filename for a copy of the shared library
93+
for use in a Player class, along with an index for later releasing."""
9494
index = self.next_player_index(name)
9595
self.player_indices[name].add(index)
9696
if self.verbose:

0 commit comments

Comments
 (0)