Almost there. To match urlparse's behavior, this should be `if allow_fragments and '#' in path and not fragment`.

You might as well just grab `urlparse()`'s function signature rather than doing the `wraps()` thing:

```python
def urlparse(url, scheme='', allow_fragments=True):
```