From: Jeremy Stanley Date: Thu, 24 Nov 2016 06:28:14 +0000 (+0000) Subject: Appease style checks X-Git-Tag: 0.0.1~175 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=5210334c47e97988ea55543d60a6b24985ebd140;ds=sidebyside Appease style checks Once more the PEP8 gods stir to anger. Sate their fury with a generous offering of whitespace, such that they might return to their baleful slumber. --- diff --git a/mudpy/__init__.py b/mudpy/__init__.py index 5fdefe8..2f1bed5 100644 --- a/mudpy/__init__.py +++ b/mudpy/__init__.py @@ -27,6 +27,7 @@ def load(): except NameError: exec("import mudpy.%s" % module) + # load the modules contained in this package modules = ["data", "misc", "password", "telnet"] load() diff --git a/mudpy/data.py b/mudpy/data.py index 00ab923..d7de13a 100644 --- a/mudpy/data.py +++ b/mudpy/data.py @@ -97,7 +97,7 @@ class DataFile: element = self.universe.contents[prefix] except KeyError: element = mudpy.misc.Element(prefix, self.universe, - self.filename) + self.filename) element.set(node[facet_pos:], self.data[node]) if prefix.startswith("mudpy.movement."): self.universe.directions.add( diff --git a/mudpy/misc.py b/mudpy/misc.py index 6c720d5..3cb201c 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -300,9 +300,10 @@ class Element: if re.match("""^area:-?\d+,-?\d+,-?\d+$""", self.key): coordinates = [(int(x)) for x in self.key.split(":")[1].split(",")] - offsets = dict((x, - self.universe.contents["mudpy.movement.%s" % x].get("vector") - ) for x in self.universe.directions) + offsets = dict( + (x, + self.universe.contents["mudpy.movement.%s" % x].get("vector") + ) for x in self.universe.directions) for portal in self.get("gridlinks"): adjacent = map(lambda c, o: c + o, coordinates, offsets[portal])