Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Fix #34. Can't use len() on a generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentg committed Feb 23, 2016
1 parent 26b84d0 commit c5e0cc4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gtfsplugins/decret_2015_1610.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
"Cf. plugin pour la documentation"
def decret_2015_1610(trips):

if len(trips) == 0:
print("Aucun voyage, impossible de calculer.")
return None

print("Calcul decret 2015 1610 sur %d voyages." % (len(trips)))
print("Calcul decret 2015 1610.")

print("Calcul de l'espacement moyen des arrêts...")
espacement_moyen = 0
Expand Down

0 comments on commit c5e0cc4

Please sign in to comment.