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
d7b68c5a
Commit
d7b68c5a
authored
Aug 02, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Branch merge
parents
d50acd87
9bbbef30
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
Doc/library/ctypes.rst
Doc/library/ctypes.rst
+2
-2
Doc/library/shutil.rst
Doc/library/shutil.rst
+3
-2
Doc/library/stat.rst
Doc/library/stat.rst
+1
-1
Lib/test/test_locale.py
Lib/test/test_locale.py
+3
-0
No files found.
Doc/library/ctypes.rst
View file @
d7b68c5a
...
...
@@ -869,10 +869,10 @@ later::
struct cell; /* forward declaration */
struct {
struct
cell
{
char *name;
struct cell *next;
}
cell
;
};
The straightforward translation into ctypes code would be this, but it does not
work::
...
...
Doc/library/shutil.rst
View file @
d7b68c5a
...
...
@@ -105,8 +105,9 @@ Directory and files operations
:func:`copy2`.
If *symlinks* is true, symbolic links in the source tree are represented as
symbolic links in the new tree; if false or omitted, the contents of the
linked files are copied to the new tree.
symbolic links in the new tree, but the metadata of the original links is NOT
copied; if false or omitted, the contents and metadata of the linked files
are copied to the new tree.
If *ignore* is given, it must be a callable that will receive as its
arguments the directory being visited by :func:`copytree`, and a list of its
...
...
Doc/library/stat.rst
View file @
d7b68c5a
...
...
@@ -84,7 +84,7 @@ Example::
for f in os.listdir(top):
pathname = os.path.join(top, f)
mode = os.stat(pathname)
[ST_MODE]
mode = os.stat(pathname)
.st_mode
if S_ISDIR(mode):
# It's a directory, recurse into it
walktree(pathname, callback)
...
...
Lib/test/test_locale.py
View file @
d7b68c5a
from
test.test_support
import
run_unittest
,
verbose
from
platform
import
linux_distribution
import
unittest
import
locale
import
sys
...
...
@@ -396,6 +397,8 @@ class TestMiscellaneous(unittest.TestCase):
# crasher from bug #7419
self
.
assertRaises
(
locale
.
Error
,
locale
.
setlocale
,
12345
)
@
unittest
.
skipIf
(
linux_distribution
()[
0
]
==
'Fedora'
,
"Fedora setlocale() "
"bug: https://bugzilla.redhat.com/show_bug.cgi?id=726536"
)
def
test_getsetlocale_issue1813
(
self
):
# Issue #1813: setting and getting the locale under a Turkish locale
oldlocale
=
locale
.
getlocale
()
...
...
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