Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cd7712

Browse files
committed
No point in warning about needing re module; remove helpful message
1 parent 3c76ad0 commit 6cd7712

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Lib/Cookie.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,7 @@
222222
except ImportError:
223223
from pickle import dumps, loads
224224

225-
try:
226-
import re
227-
except ImportError:
228-
raise ImportError, "Cookie.py requires 're' from Python 1.5 or later"
225+
import re
229226

230227
__all__ = ["CookieError","BaseCookie","SimpleCookie","SerialCookie",
231228
"SmartCookie","Cookie"]

0 commit comments

Comments
 (0)