Pull requests

#5 Merged
Repository
Deleted repository
Branch
default (4994a058955b)
Repository
kencochrane/django-mobi django-mobi
Branch
default

empty strings in tablet names list

Author
  1. Roman Lyashov
Reviewers
Description

I just realized that my original code didn't work properly

ss = f.readlines() was returning empty lines with '\n' in them, so "if s" in [s.strip() for s in ss if s and not s.startswith('#')] didn't ignore those lines

ss = f.read().splitlines() removes '\n' characters. Tested it, seems to work

Comments (1)