euscan: just PEP8 cleaning

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-07-27 11:33:27 +02:00
parent 2c9b44f4d9
commit 04265dacff
4 changed files with 14 additions and 13 deletions

View File

@ -10,18 +10,18 @@ class Migration(DataMigration):
def forwards(self, orm): def forwards(self, orm):
every_day = orm["djcelery.CrontabSchedule"].objects.create( every_day = orm["djcelery.CrontabSchedule"].objects.create(
minute = "00", minute="00",
hour = "01", hour="01",
day_of_week = "*", day_of_week="*",
day_of_month = "*", day_of_month="*",
month_of_year = "*" month_of_year="*"
) )
every_week = orm["djcelery.CrontabSchedule"].objects.create( every_week = orm["djcelery.CrontabSchedule"].objects.create(
minute = "00", minute="00",
hour = "03", hour="03",
day_of_week = "1", day_of_week="1",
day_of_month = "*", day_of_month="*",
month_of_year = "*" month_of_year="*"
) )
orm["djcelery.PeriodicTask"].objects.create( orm["djcelery.PeriodicTask"].objects.create(
name="Daily portage update", name="Daily portage update",

View File

@ -54,7 +54,8 @@ class ScanMetadata(object):
return return
except Exception as e: except Exception as e:
self.logger.error( self.logger.error(
self.style.ERROR('%s/%s: %s' % (pkg.category, pkg.name, str(e))) self.style.ERROR('%s/%s: %s' %
(pkg.category, pkg.name, str(e)))
) )
return return

View File

@ -179,7 +179,7 @@ def scan_upstream(query, on_progress=None):
not is_version_stable(version): not is_version_stable(version):
continue continue
if CONFIG['progress']: if CONFIG['progress']:
print ("", file=sys.stderr) print("", file=sys.stderr)
output.result(cp, version, url, handler, confidence) output.result(cp, version, url, handler, confidence)
return result return result