1
0
Fork 0
flightgear/scripts/python/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
..
terrasync terrasync.py: add support for the HTTPS protocol 2020-12-15 15:40:40 +01:00
tests terrasync.py: improve code readability 2020-10-03 14:55:25 +02:00
terrasync.py terrasync.py: more modular code layout 2018-02-07 11:38:41 +01:00