Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
45f799fe
Commit
45f799fe
authored
Aug 02, 2009
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issues #2715, #6621: Remove unused and undefined references to FSSpec
from binhex module. Thanks Vincent Legoll.
parent
a1a54bce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
Lib/binhex.py
Lib/binhex.py
+0
-13
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/binhex.py
View file @
45f799fe
...
...
@@ -143,9 +143,6 @@ class BinHex:
if
isinstance
(
ofp
,
str
):
ofname
=
ofp
ofp
=
io
.
open
(
ofname
,
'wb'
)
if
os
.
name
==
'mac'
:
fss
=
FSSpec
(
ofname
)
fss
.
SetCreatorType
(
'BnHq'
,
'TEXT'
)
ofp
.
write
(
b'(This file must be converted with BinHex 4.0)
\
r
\
r
:'
)
hqxer
=
_Hqxcoderengine
(
ofp
)
self
.
ofp
=
_Rlecoderengine
(
hqxer
)
...
...
@@ -446,9 +443,6 @@ def hexbin(inp, out):
finfo
=
ifp
.
FInfo
if
not
out
:
out
=
ifp
.
FName
if
os
.
name
==
'mac'
:
ofss
=
FSSpec
(
out
)
out
=
ofss
.
as_pathname
()
ofp
=
io
.
open
(
out
,
'wb'
)
# XXXX Do translation on non-mac systems
...
...
@@ -469,11 +463,4 @@ def hexbin(inp, out):
ofp
.
write
(
d
)
ofp
.
close
()
if
os
.
name
==
'mac'
:
nfinfo
=
ofss
.
GetFInfo
()
nfinfo
.
Creator
=
finfo
.
Creator
nfinfo
.
Type
=
finfo
.
Type
nfinfo
.
Flags
=
finfo
.
Flags
ofss
.
SetFInfo
(
nfinfo
)
ifp
.
close
()
Misc/NEWS
View file @
45f799fe
...
...
@@ -63,6 +63,8 @@ C-API
Library
-------
- Issue #2715: Remove remnants of Carbon.File from binhex module.
- Issue #6595: The Decimal constructor now allows arbitrary Unicode
decimal digits in input, as recommended by the standard. Previously
it was restricted to accepting [0-9].
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment