pep8 compliance: W291 trailing whitespace

This commit is contained in:
David Sowder 2012-02-23 18:03:03 -06:00
parent 878d113b45
commit 523abd8b70

View File

@ -1,25 +1,25 @@
# the inputs list tells MCEdit what kind of options to present to the user.
# each item is a (name, value) pair. name is a text string acting
# each item is a (name, value) pair. name is a text string acting
# both as a text label for the input on-screen and a key for the 'options'
# parameter to perform(). value and its type indicate allowable and
# parameter to perform(). value and its type indicate allowable and
# default values for the option:
# True or False: creates a checkbox with the given value as default
# int or float value: creates a value input with the given value as default
# int values create fields that only accept integers.
# tuple of numbers: a tuple of ints or floats creates a value input with minimum and
# maximum values. a 2-tuple specifies (min, max) with min as default.
# tuple of numbers: a tuple of ints or floats creates a value input with minimum and
# maximum values. a 2-tuple specifies (min, max) with min as default.
# a 3-tuple specifies (default, min, max)
# tuple of strings: a tuple of strings creates a popup menu whose entries are
# labeled with the given strings. the first item in the tuple is selected
# by default. returns one of the strings in the tuple.
# "blocktype" as a string: creates a button the user can click to choose
# a block type in a list. returns a Block object. the object has 'ID'
# a block type in a list. returns a Block object. the object has 'ID'
# and 'blockData' attributes.
# this dictionary creates an integer input with range (-128, 128) and default 4,
# a blocktype picker, a floating-point input with no limits and default 15.0,
# a blocktype picker, a floating-point input with no limits and default 15.0,
# a checkbox initially checked, and a menu of choices
inputs = (
@ -30,9 +30,9 @@ inputs = (
("Access method", ("Use blockAt", "Use temp schematic", "Use chunk slices")),
)
# perform() is the main entry point of a filter. Its parameters are
# perform() is the main entry point of a filter. Its parameters are
# a MCLevel instance, a BoundingBox, and an options dictionary.
# The options dictionary will have keys corresponding to the keys specified above,
# The options dictionary will have keys corresponding to the keys specified above,
# and values reflecting the user's input.
# you get undo for free: everything within 'box' is copied to a temporary buffer
@ -70,12 +70,12 @@ def perform(level, box, options):
if method == "Use temp schematic":
temp = level.extractSchematic(box)
# remove any entities in the temp. this is an ugly move
# remove any entities in the temp. this is an ugly move
# because copyBlocksFrom actually copies blocks, entities, everything
temp.removeEntitiesInBox(temp.bounds)
temp.removeTileEntitiesInBox(temp.bounds)
# replaces gold with TNT.
# replaces gold with TNT.
# the expression in [] creates a temporary the same size, using more memory
temp.Blocks[temp.Blocks == 14] = 46
@ -93,7 +93,7 @@ def perform(level, box, options):
blocks = chunk.Blocks[slices]
# blocks now contains a "view" on the part of the chunk's blocks
# that lie in the selection. This "view" is a numpy object that
# that lie in the selection. This "view" is a numpy object that
# accesses only a subsection of the original array, without copying
# once again, gold into TNT