Hello there,

I am trying to debug a single program, and I am interactively executing this:

```
>>> test = 'ab\r\nc\r\n\r\nde\r\nf'
>>> re.split(r'(?:\r?\n){2}', test)
['ab\r\nc', 'de\r\nf']
>>> [re.sub(r'\r?\n', ' ', x.strip()) for x in re.split(r'(?:\r?\n){2}', test)]
Traceback (most recent call last):
  File "<pudb command line>", line 1, in <module>
  File "<pudb command line>", line 1, in <listcomp>
NameError: name 're' is not defined
>>>
```

Program already does `import re` and I did it myself. No luck. Working
on "python console" works as expected

Ntentos Stavros
_______________________________________________
Pudb mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to