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
b2b7d4ed
Commit
b2b7d4ed
authored
Sep 06, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of non-ascii characters.
parent
c5f23104
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Mac/Lib/cfmfile.py
Mac/Lib/cfmfile.py
+4
-4
No files found.
Mac/Lib/cfmfile.py
View file @
b2b7d4ed
"""codefragments.py -- wrapper to modify code fragments."""
# 1998, Just van Rossum, Letterror
#
(c)
1998, Just van Rossum, Letterror
__version__
=
"0.8b3"
__author__
=
"jvr"
...
...
@@ -70,7 +70,7 @@ class CfrgResource:
try
:
data
=
Res
.
Get1Resource
(
'cfrg'
,
0
).
data
except
Res
.
Error
:
raise
Res
.
Error
,
"no
cfrg
resource found"
,
sys
.
exc_traceback
raise
Res
.
Error
,
"no
'cfrg'
resource found"
,
sys
.
exc_traceback
finally
:
Res
.
CloseResFile
(
resref
)
Res
.
UseResFile
(
currentresref
)
...
...
@@ -146,7 +146,7 @@ class FragmentDescriptor:
def
getfragment
(
self
):
if
self
.
where
<>
1
:
raise
error
,
"cant read fragment, unsupported location"
raise
error
,
"can
'
t read fragment, unsupported location"
f
=
open
(
self
.
path
,
"rb"
)
f
.
seek
(
self
.
offset
)
if
self
.
length
:
...
...
@@ -158,7 +158,7 @@ class FragmentDescriptor:
def
copydata
(
self
,
outfile
):
if
self
.
where
<>
1
:
raise
error
,
"cant read fragment, unsupported location"
raise
error
,
"can
'
t read fragment, unsupported location"
infile
=
open
(
self
.
path
,
"rb"
)
if
self
.
length
==
0
:
infile
.
seek
(
0
,
2
)
...
...
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