Skip to content

Commit

Permalink
Fix few missing blank lines (PEP8).
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Apr 19, 2014
1 parent 2ee38b5 commit 105068d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions picard/config_upgrade.py
Expand Up @@ -34,6 +34,7 @@

_s = config.setting


def upgrade_to_v1_0_0_final_0():
"""In version 1.0, the file naming formats for single and various artist releases were merged.
"""
Expand Down
1 change: 1 addition & 0 deletions picard/ui/logview.py
Expand Up @@ -100,6 +100,7 @@ def __init__(self, parent=None):
def toggleDebug(self, state):
QtCore.QObject.tagger.debug(state == QtCore.Qt.Checked)


class HistoryView(LogViewCommon):

def __init__(self, parent=None):
Expand Down
1 change: 1 addition & 0 deletions picard/ui/options/scripting.py
Expand Up @@ -92,6 +92,7 @@ def highlightBlock(self, text):

self.setCurrentBlockState(open_brackets)


class ScriptingOptionsPage(OptionsPage):

NAME = "scripting"
Expand Down
3 changes: 3 additions & 0 deletions picard/util/textencoding.py
Expand Up @@ -98,6 +98,7 @@ def _re_any(iterable):
}
_re_additional_compatibility = _re_any(_additional_compatibility.keys())


def unicode_simplify_compatibility(string):
interim = _re_additional_compatibility.sub(lambda m: _additional_compatibility[m.group(0)], string)
return unicodedata.normalize("NFKC", interim)
Expand Down Expand Up @@ -175,6 +176,7 @@ def unicode_simplify_compatibility(string):
}
_re_simplify_punctuation = _re_any(_simplify_punctuation.keys())


def unicode_simplify_punctuation(string):
return _re_simplify_punctuation.sub(lambda m: _simplify_punctuation[m.group(0)], string)

Expand Down Expand Up @@ -406,6 +408,7 @@ def unicode_simplify_punctuation(string):
}
_re_simplify_combinations = _re_any(_simplify_combinations)


def unicode_simplify_combinations(string):
return _re_simplify_combinations.sub(lambda m: _simplify_combinations[m.group(0)], string)

Expand Down
1 change: 1 addition & 0 deletions resources/compile.py
Expand Up @@ -5,6 +5,7 @@
from distutils import log
from distutils.dep_util import newer


def main():
scriptdir = os.path.dirname(os.path.abspath(__file__))
topdir = os.path.abspath(os.path.join(scriptdir, ".."))
Expand Down
3 changes: 3 additions & 0 deletions resources/makeqrc.py
Expand Up @@ -9,12 +9,14 @@
It will update qrc file only if images newer than it are found
"""


def tryint(s):
try:
return int(s)
except:
return s


def natsort_key(s):
return [ tryint(c) for c in re.split('(\d+)', s) ]

Expand All @@ -28,6 +30,7 @@ def find_files(topdir, directory, pattern):
filename = os.path.relpath(filepath, topdir)
yield filename


def main():
scriptdir = os.path.dirname(os.path.abspath(__file__))
topdir = os.path.abspath(os.path.join(scriptdir, ".."))
Expand Down

0 comments on commit 105068d

Please sign in to comment.