[Freeciv-tickets] [freeciv] #43932: generate_packets.py: Use context managers and with-blocks when accessing files

Back to archive index
OSDN Ticket System norep****@osdn*****
Mon Feb 21 04:14:54 JST 2022


#43932: generate_packets.py: Use context managers and with-blocks when accessing files

  Open Date: 2022-02-19 14:26
Last Update: 2022-02-20 20:14

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/43932
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43932

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-02-20 20:14 Updated by: alienvalkyrie
 * Owner Update from (None) to alienvalkyrie
 * Resolution Update from None to Accepted

Comment:

The part about more context managers has been split off into #43953 and #43954.

---------------------------------------------------------------------
Ticket Status:

      Reporter: alienvalkyrie
         Owner: alienvalkyrie
          Type: Patches
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: Bootstrap
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket details:

Part of #43927. Context managers also allow things that need to happen at the beginning and end of something – like multiple inclusion protection or extern "C" {...} wrapping – to have both parts in one place.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/43932
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43932



More information about the Freeciv-tickets mailing list
Back to archive index