From e89ce2c7dbcb23f90256051595a37dcb28d24c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= Date: Tue, 18 Dec 2012 15:30:03 +0100 Subject: [PATCH] Fix minor flake8 issues in font patcher --- powerline/fontpatcher/fontpatcher.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/powerline/fontpatcher/fontpatcher.py b/powerline/fontpatcher/fontpatcher.py index d95683e8..6ff32237 100755 --- a/powerline/fontpatcher/fontpatcher.py +++ b/powerline/fontpatcher/fontpatcher.py @@ -2,8 +2,6 @@ # -*- coding: utf-8 -*- import argparse -import os -import re import sys try: @@ -60,10 +58,14 @@ class FontPatcher(object): except TypeError: continue - if bbox[0] < target_bb[0]: target_bb[0] = bbox[0] - if bbox[1] < target_bb[1]: target_bb[1] = bbox[1] - if bbox[2] > target_bb[2]: target_bb[2] = bbox[2] - if bbox[3] > target_bb[3]: target_bb[3] = bbox[3] + if bbox[0] < target_bb[0]: + target_bb[0] = bbox[0] + if bbox[1] < target_bb[1]: + target_bb[1] = bbox[1] + if bbox[2] > target_bb[2]: + target_bb[2] = bbox[2] + if bbox[3] > target_bb[3]: + target_bb[3] = bbox[3] # Find source and target size difference for scaling x_ratio = (target_bb[2] - target_bb[0]) / (source_bb[2] - source_bb[0])