Skip to content

Commit e244c35

Browse files
committed
Fix the tutorial, thanks sil5555.
1 parent 79fe810 commit e244c35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/tutorials/prettyprinter.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The replay object itself is a dumb data structure; there are no access methods o
7575
datetime.datetime(2011, 9, 20, 21, 8, 8)
7676
>>> replay.type
7777
'2v2'
78-
>>> replay.map
78+
>>> replay.map_name
7979
'The Boneyard'
8080
>>> replay.length # string format is MM.SS
8181
Length(0, 1032)
@@ -104,7 +104,7 @@ So now all we need to do is build the ouput using the available replay attribute
104104
--------------------------------------------
105105
SC2 Version {release_string}
106106
{category} Game, {date}
107-
{type} on {map}
107+
{type} on {map_name}
108108
Length: {length}
109109

110110
""".format(**replay.__dict__)
@@ -120,7 +120,7 @@ Similar formatting written in a more verbose and less pythonic way:
120120
output += "--------------------------------------------\n"
121121
output += "SC2 Version "+replay.release_string+'\n'
122122
output += replay.category+" Game, "+str(replay.date)+'\n'
123-
output += replay.type+" on "+replay.map+'\n'
123+
output += replay.type+" on "+replay.map_name+'\n'
124124
output += "Length: "+str(replay.length)
125125
return output
126126

@@ -163,7 +163,7 @@ So lets put it all together into the final script, ``prettyPrinter.py``:
163163
--------------------------------------------
164164
SC2 Version {release_string}
165165
{category} Game, {date}
166-
{type} on {map}
166+
{type} on {map_name}
167167
Length: {length}
168168

169169
{formattedTeams}

0 commit comments

Comments
 (0)