#43 Appease flake8
Merged 4 years ago by pingou. Opened 4 years ago by nphilipp.
fedora-infra/ nphilipp/distgit-bugzilla-sync master--flake8  into  master

@@ -16,10 +16,10 @@ 

  import logging

  import os

  import time

+ from xml.etree.ElementTree import ParseError

  

  from defusedxml import cElementTree as etree

  import requests

- from xml.etree.ElementTree import ParseError

  

  

  KOJI_REPO = 'https://kojipkgs.fedoraproject.org/repos/'

@@ -434,12 +434,11 @@ 

                                      old_value = f"from `{from_fas_names}`"

                                  else:

                                      old_value = ""

-                                 print(

-                                     f"[EDITCOMP] {data['product']}/{data['component']}  {key} changed {old_value}"

-                                     f" to FAS name(s) `{new_value}`")

+                                 print(f"[EDITCOMP] {data['product']}/{data['component']}"

+                                       f"  {key} changed {old_value} to FAS name(s) `{new_value}`")

                              else:

-                                 print(

-                                     f"[EDITCOMP] {data['product']}/{data['component']}  {key} changed from `{old_value}` to `{new_value}`")

+                                 print(f"[EDITCOMP] {data['product']}/{data['component']}"

+                                       f"  {key} changed from `{old_value}` to `{new_value}`")

  

                  owner_changed = "initialowner" in data

  
@@ -517,9 +516,11 @@ 

                              value = qacontact

                          else:

                              value = initial_cc_fasnames

-                         print(f"[ADDCOMP] {bz_product_name}/{package}  {key} set to FAS name(s) `{value}`")

+                         print(f"[ADDCOMP] {bz_product_name}/{package}"

+                               f"  {key} set to FAS name(s) `{value}`")

                      else:

-                         print(f"[ADDCOMP] {bz_product_name}/{package}  {key} set to {data.get(key)}")

+                         print(f"[ADDCOMP] {bz_product_name}/{package}"

+                               f"  {key} set to {data.get(key)}")

  

              def add_component(data, num_attempts=5):

                  for i in range(num_attempts):

no initial comment

Pull-Request has been merged by pingou

4 years ago