1
0
Fork 0
flightgear/scripts/python
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
demo.py Migrate FGFSDemo.py, FlightGear.py, demo.py and nasal_api_doc.py to Python 3 2020-08-05 14:01:57 +02:00
FGFSDemo.py Migrate FGFSDemo.py, FlightGear.py, demo.py and nasal_api_doc.py to Python 3 2020-08-05 14:01:57 +02:00
FlightGear.py Python: best practices 2020-08-29 12:07:15 -05:00
nasal_api_doc.py python: use a with-statement to manage file close 2020-10-01 22:51:31 -05:00