From f17e50294bc78937eb78ca454dd79ac3d7f705a9 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 5 Sep 2013 19:04:13 +0100 Subject: [PATCH] Sun Dec 18 20:18:41 GMT 2011 Brian Warner * minor cleanup: remove trailing spaces in misc/ --- misc/build_helpers/build-deb.py | 2 +- misc/build_helpers/sub-ver.py | 2 +- misc/simulators/simulator.py | 2 -- misc/simulators/sizes.py | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/misc/build_helpers/build-deb.py b/misc/build_helpers/build-deb.py index 4d133b0d..8b87159d 100644 --- a/misc/build_helpers/build-deb.py +++ b/misc/build_helpers/build-deb.py @@ -85,7 +85,7 @@ for n in ["compat", "control", "copyright", "pycompat", "rules"]: if not os.path.exists(fn): fn = "misc/debian/%s" % n assert os.path.exists(fn) - + shutil.copyfile(fn, os.path.join(DEBDIR, n)) if n == "rules": os.chmod(os.path.join(DEBDIR, n), 0755) # +x diff --git a/misc/build_helpers/sub-ver.py b/misc/build_helpers/sub-ver.py index 6a1392cb..6c1fbbad 100644 --- a/misc/build_helpers/sub-ver.py +++ b/misc/build_helpers/sub-ver.py @@ -12,7 +12,7 @@ elif len(sys.argv) == 2: else: raise ValueError('must provide 0 or 1 argument (stdin, or filename)') -vern = { +vern = { 'major': v.major or 0, 'minor': v.minor or 0, 'point': v.micro or 0, diff --git a/misc/simulators/simulator.py b/misc/simulators/simulator.py index adf674de..fa97f87f 100644 --- a/misc/simulators/simulator.py +++ b/misc/simulators/simulator.py @@ -288,5 +288,3 @@ def main(): if __name__ == '__main__': main() - - diff --git a/misc/simulators/sizes.py b/misc/simulators/sizes.py index 79109465..b61eb152 100644 --- a/misc/simulators/sizes.py +++ b/misc/simulators/sizes.py @@ -110,8 +110,6 @@ class Sizes: # any data sibling_length = d * (k-1) self.bytes_until_some_data = 32 * sibling_length + block_size - - else: raise ValueError("unknown mode '%s" % mode) -- 2.45.2