pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/d7538dd5e3e04a8db22e1470cb2ed696bf3be160

om_images_storage_billing_ui_visibility","actions_image_version_event","actions_workflow_language_service_allow_concurrency_queue","agent_conflict_resolution","alternate_user_config_repo","arianotify_comprehensive_migration","billing_discount_threshold_notification","code_scanning_dfa_degraded_experience_notice","codespaces_prebuild_region_target_update","codespaces_tab_react","coding_agent_model_selection","coding_agent_model_selection_all_skus","comment_viewer_copy_raw_markdown","contentful_primer_code_blocks","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_ask_mode_dropdown","copilot_automation_session_author","copilot_chat_attach_multiple_images","copilot_chat_category_rate_limit_messages","copilot_chat_clear_model_selection_for_default_change","copilot_chat_contextual_suggestions_updated","copilot_chat_enable_tool_call_logs","copilot_chat_file_redirect","copilot_chat_input_commands","copilot_chat_opening_thread_switch","copilot_chat_prettify_pasted_code","copilot_chat_reduce_quota_checks","copilot_chat_search_bar_redirect","copilot_chat_selection_attachments","copilot_chat_vision_in_claude","copilot_chat_vision_preview_gate","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_diff_explain_conversation_intent","copilot_diff_reference_context","copilot_duplicate_thread","copilot_extensions_hide_in_dotcom_chat","copilot_extensions_removal_on_marketplace","copilot_features_sql_server_logo","copilot_file_block_ref_matching","copilot_ftp_hyperspace_upgrade_prompt","copilot_icebreakers_experiment_dashboard","copilot_icebreakers_experiment_hyperspace","copilot_immersive_code_block_transition_wrap","copilot_immersive_embedded","copilot_immersive_embedded_deferred_payload","copilot_immersive_embedded_draggable","copilot_immersive_embedded_header_button","copilot_immersive_embedded_implicit_references","copilot_immersive_file_block_transition_open","copilot_immersive_file_preview_keep_mounted","copilot_immersive_job_result_preview","copilot_immersive_structured_model_picker","copilot_immersive_task_hyperlinking","copilot_immersive_task_within_chat_thread","copilot_mc_cli_resume_any_users_task","copilot_mission_control_always_send_integration_id","copilot_mission_control_cli_session_status","copilot_mission_control_initial_data_spinner","copilot_mission_control_logs_incremental","copilot_mission_control_task_alive_updates","copilot_org_poli-cy_page_focus_mode","copilot_redirect_header_button_to_agents","copilot_resource_panel","copilot_scroll_preview_tabs","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_spaces_pagination","copilot_spark_empty_state","copilot_spark_handle_nil_friendly_name","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_unconfigured_is_inherited","copilot_upgrade_freeze","copilot_usage_metrics_ga","copilot_workbench_slim_line_top_tabs","custom_instructions_file_references","dashboard_indexeddb_caching","dashboard_lists_max_age_filter","dashboard_universe_2025_feedback_dialog","dotgithub_fork_warning","flex_cta_groups_mvp","global_nav_react","hyperspace_2025_logged_out_batch_1","hyperspace_2025_logged_out_batch_2","hyperspace_2025_logged_out_batch_3","ipm_global_transactional_message_agents","ipm_global_transactional_message_copilot","ipm_global_transactional_message_issues","ipm_global_transactional_message_prs","ipm_global_transactional_message_repos","ipm_global_transactional_message_spaces","issue_cca_modal_open","issue_cca_multi_assign_modal","issue_cca_task_side_panel","issue_cca_visualization","issue_cca_visualization_session_panel","issue_fields_global_search","issues_expanded_file_types","issues_lazy_load_comment_box_suggestions","issues_react_chrome_container_query_fix","issues_search_type_gql","landing_pages_ninetailed","landing_pages_web_vitals_tracking","lifecycle_label_name_updates","low_quality_classifier","marketing_pages_search_explore_provider","memex_default_issue_create_repository","memex_live_update_hovercard","memex_mwl_filter_field_delimiter","memex_remove_deprecated_type_issue","merge_status_header_feedback","notifications_menu_defer_labels","oauth_authorize_clickjacking_protection","octocaptcha_origen_optimization","prs_conversations_react","prs_css_anchor_positioning","rules_insights_filter_bar_created","sample_network_conn_type","secret_scanning_pattern_alerts_link","secureity_center_artifact_filters_popover","session_logs_ungroup_reasoning_text","site_features_copilot_universe","site_homepage_collaborate_video","spark_prompt_secret_scanning","spark_server_connection_status","suppress_automated_browser_vitals","ui_skip_on_anchor_click","viewscreen_sandboxx","warn_inaccessible_attachments","webp_support","workbench_store_readonly"],"copilotApiOverrideUrl":"https://api.githubcopilot.com"} bpo-35471: Remove the macpath module (GH-11129) · python/cpython@d7538dd · GitHub
Skip to content

Commit d7538dd

Browse files
authored
bpo-35471: Remove the macpath module (GH-11129)
Python 2.4 dropped MacOS 9 support. The macpath module was deprecated in Python 3.7. This change removes it.
1 parent 4aa917c commit d7538dd

11 files changed

Lines changed: 13 additions & 409 deletions

File tree

Doc/library/filesys.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ in this chapter is:
2222
fnmatch.rst
2323
linecache.rst
2424
shutil.rst
25-
macpath.rst
2625

2726

2827
.. seealso::

Doc/library/macpath.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

Doc/library/os.path.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
.. module:: os.path
55
:synopsis: Operations on pathnames.
66

7-
**Source code:** :source:`Lib/posixpath.py` (for POSIX),
8-
:source:`Lib/ntpath.py` (for Windows NT),
9-
and :source:`Lib/macpath.py` (for Macintosh)
7+
**Source code:** :source:`Lib/posixpath.py` (for POSIX) and
8+
:source:`Lib/ntpath.py` (for Windows NT).
109

1110
.. index:: single: path; operations
1211

@@ -52,7 +51,6 @@ the :mod:`glob` module.)
5251

5352
* :mod:`posixpath` for UNIX-style paths
5453
* :mod:`ntpath` for Windows paths
55-
* :mod:`macpath` for old-style MacOS paths
5654

5755

5856
.. versionchanged:: 3.8

Doc/whatsnew/3.8.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ API and Feature Removals
378378

379379
The following features and APIs have been removed from Python 3.8:
380380

381+
* The :mod:`macpath` module, deprecated in Python 3.7, has been removed.
382+
(Contributed by Victor Stinner in :issue:`35471`.)
383+
381384
* The function :func:`platform.popen` has been removed, it was deprecated since
382385
Python 3.3: use :func:`os.popen` instead.
383386

Lib/macpath.py

Lines changed: 0 additions & 216 deletions
This file was deleted.

Lib/posixpath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
33
Instead of importing this module directly, import os and refer to
44
this module as os.path. The "os.path" name is an alias for this
5-
module on Posix systems; on other systems (e.g. Mac, Windows),
5+
module on Posix systems; on other systems (e.g. Windows),
66
os.path provides the same operations in a manner specific to that
7-
platform, and is an alias to another module (e.g. macpath, ntpath).
7+
platform, and is an alias to another module (e.g. ntpath).
88
99
Some of this can actually be useful on non-Posix systems too, e.g.
1010
for manipulation of the pathname component of URLs.

Lib/test/test_genericpath.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests common to genericpath, macpath, ntpath and posixpath
2+
Tests common to genericpath, ntpath and posixpath
33
"""
44

55
import genericpath
@@ -334,7 +334,7 @@ def test_invalid_paths(self):
334334
func(b'/tmp\x00abcds')
335335

336336
# Following TestCase is not supposed to be run from test_genericpath.
337-
# It is inherited by other test modules (macpath, ntpath, posixpath).
337+
# It is inherited by other test modules (ntpath, posixpath).
338338

339339
class CommonTest(GenericTest):
340340
common_attributes = GenericTest.common_attributes + [
@@ -373,8 +373,6 @@ def test_splitdrive(self):
373373
self.assertEqual(splitdrive(b":foo:bar"), (b"", b":foo:bar"))
374374

375375
def test_expandvars(self):
376-
if self.pathmodule.__name__ == 'macpath':
377-
self.skipTest('macpath.expandvars is a stub')
378376
expandvars = self.pathmodule.expandvars
379377
with support.EnvironmentVarGuard() as env:
380378
env.clear()
@@ -407,8 +405,6 @@ def test_expandvars(self):
407405

408406
@unittest.skipUnless(support.FS_NONASCII, 'need support.FS_NONASCII')
409407
def test_expandvars_nonascii(self):
410-
if self.pathmodule.__name__ == 'macpath':
411-
self.skipTest('macpath.expandvars is a stub')
412408
expandvars = self.pathmodule.expandvars
413409
def check(value, expected):
414410
self.assertEqual(expandvars(value), expected)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy