You could do this in one line:

```python
self.locale = locale or application == 'b2g' and 'multi' or 'en-US'
```