1
0
Fork 0
flightgear/scripts/python/TerraSync/terrasync
Florent Rougon e342a0f41e terrasync.py: add support for the HTTPS protocol
- Instantiate an HTTPSConnection object when the URL scheme is 'https'.

- Clarify and simplify the initialization of HTTPSocketRequest and
  HTTPDownloadRequest:
    + clarify initialization of their 'callback' attribute (it's the
      method of the same name; make it clear that the base class
      constructor, namely HTTPGetCallback.__init__(), doesn't modify the
      'callback' attribute when an object of class HTTPSocketRequest or
      HTTPDownloadRequest is initialized);
    + HTTPDownloadRequest doesn't need access to the TerraSync object
      -> remove the corresponding instance attribute and constructor
         argument.

- Don't use super() when initializing HTTPDownloadRequest objects
  (see [1]).

[1] https://fuhm.net/super-harmful/
2020-12-15 15:40:40 +01:00
..
__init__.py terrasync.py: more modular code layout 2018-02-07 11:38:41 +01:00
dirindex.py terrasync.py: more thorough checking of .dirindex contents 2020-10-03 14:18:29 +02:00
exceptions.py terrasync.py: add support for the HTTPS protocol 2020-12-15 15:40:40 +01:00
main.py terrasync.py: add support for the HTTPS protocol 2020-12-15 15:40:40 +01:00
virtual_path.py Use python3 default implementation 2020-10-03 10:28:46 -05:00