Message209376
Question:
What is the point of the
old_encoding = codecs.lookup(self._encoding).name
encoding = codecs.lookup(encoding).name
if encoding == old_encoding and errors == self._errors:
# no change
return
dance? Isn't this equivalent to
if encoding == self.encoding and errors == self._errors:
# no change
return
except that it doesn't validate the given encoding? But if the encoding is invalid, isn't it enough that the exception is raised a few lines further down? |
|
Date |
User |
Action |
Args |
2014-01-27 02:09:10 | nikratio | set | recipients:
+ nikratio, loewis, ishimoto, ncoghlan, pitrou, vstinner, jwilk, mrabarnett, Arfrever, methane, rurpy2, serhiy.storchaka, elixir |
2014-01-27 02:09:10 | nikratio | set | messageid: <1390788550.72.0.133062417677.issue15216@psf.upfronthosting.co.za> |
2014-01-27 02:09:10 | nikratio | link | issue15216 messages |
2014-01-27 02:09:10 | nikratio | create | |
|