-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is 'the big one', which touches every file so that it all conforms to the given standard.
- Loading branch information
1 parent
1196d43
commit a6e5201
Showing
186 changed files
with
20,184 additions
and
17,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,28 +13,29 @@ | |
# included in all copies or substantial portions of the Software. | ||
|
||
|
||
import confuse | ||
from sys import stderr | ||
|
||
__version__ = '1.6.1' | ||
__author__ = 'Adrian Sampson <[email protected]>' | ||
import confuse | ||
|
||
__version__ = "1.6.1" | ||
__author__ = "Adrian Sampson <[email protected]>" | ||
|
||
|
||
class IncludeLazyConfig(confuse.LazyConfig): | ||
"""A version of Confuse's LazyConfig that also merges in data from | ||
YAML files specified in an `include` setting. | ||
""" | ||
|
||
def read(self, user=True, defaults=True): | ||
super().read(user, defaults) | ||
|
||
try: | ||
for view in self['include']: | ||
for view in self["include"]: | ||
self.set_file(view.as_filename()) | ||
except confuse.NotFoundError: | ||
pass | ||
except confuse.ConfigReadError as err: | ||
stderr.write("configuration `import` failed: {}" | ||
.format(err.reason)) | ||
stderr.write("configuration `import` failed: {}".format(err.reason)) | ||
|
||
|
||
config = IncludeLazyConfig('beets', __name__) | ||
config = IncludeLazyConfig("beets", __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
|
||
|
||
import sys | ||
|
||
from .ui import main | ||
|
||
if __name__ == "__main__": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.