Changeset c324852 in trunk


Ignore:
Timestamp:
2020-10-29T17:51:29Z (4 years ago)
Author:
Itamar Turner-Trauring <itamar@…>
Branches:
master
Children:
dce3680
Parents:
0cf6ca86
Message:

Drop support for '\#', never was used by anything as far as we know.

Location:
src/allmydata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/node.py

    r0cf6ca86 rc324852  
    312312
    313313            item = self.config.get(section, option)
    314             if option.endswith(".furl") and self._contains_unescaped_hash(item):
     314            if option.endswith(".furl") and '#' in item:
    315315                raise UnescapedHashError(section, option, item)
    316316
  • TabularUnified src/allmydata/test/test_node.py

    r0cf6ca86 rc324852  
    186186        Hashes in furl options are not allowed, resulting in exception.
    187187        """
    188         escaped = "lalal\\#onohash"
    189188        basedir = self.mktemp()
    190189        fileutil.make_dirs(basedir)
     
    196195        with self.assertRaises(UnescapedHashError):
    197196            config.get_config("node", "log_gatherer.furl")
    198 
    199         with open(os.path.join(basedir, 'tahoe.cfg'), 'wt') as f:
    200             f.write("[node]\n")
    201             f.write("log_gatherer.furl = %s\n" % (escaped,))
    202         self.assertEquals(config.get_config("node", "log_gatherer.furl"), escaped)
    203197
    204198    def test_missing_config_item(self):
Note: See TracChangeset for help on using the changeset viewer.