Skip to content

[python] Use PEP-0008 compliant code headers #762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions stdlib/public/common/MirrorCommon.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#//===--- MirrorCommon.py -------------------------------------*- python -*-===//
#//
#// This source file is part of the Swift.org open source project
#//
#// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
#// Licensed under Apache License v2.0 with Runtime Library Exception
#//
#// See http://swift.org/LICENSE.txt for license information
#// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#//
#//===----------------------------------------------------------------------===//
# MirrorCommon.py -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
# -----------------------------------------------------------------------------
#
# This file contains utility functions that are used by the gyb template files
# that generate Mirrors for the Swift Standard Library.
# If you edit this, make sure to also accordingly tweak the actual template files.
#
# -----------------------------------------------------------------------------

def getDisposition(disp=None):
if disp is None:
Expand Down
12 changes: 9 additions & 3 deletions test/Unit/lit.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# -*- Python -*-

# Configuration file for the 'lit' test runner.
# test/Unit/lit.cfg - Configuration for the 'lit' test runner. -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

import os

Expand Down
24 changes: 12 additions & 12 deletions test/lit.cfg
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
##===--- lit.cfg ---------------------------------------------*- Python -*-===##
##
## This source file is part of the Swift.org open source project
##
## Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
## Licensed under Apache License v2.0 with Runtime Library Exception
##
## See http://swift.org/LICENSE.txt for license information
## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
##
##===----------------------------------------------------------------------===##
# swift/test/lit.cfg - Configuration for the 'lit' test runner -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
# -----------------------------------------------------------------------------
#
# This is a configuration file for the 'lit' test runner.
#
# Refer to docs/Testing.rst for documentation.
#
# Update docs/Testing.rst when changing this file.
#
##===----------------------------------------------------------------------===##
# -----------------------------------------------------------------------------

import os
import platform
Expand Down
4 changes: 1 addition & 3 deletions tools/SourceKit/bindings/python/sourcekitd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#===- __init__.py - sourcekitd Python Bindings ---------------*- python -*--===#
# __init__.py - sourcekitd Python Bindings -*- python -*-
#
# This source file is part of the Swift.org open source project
#
Expand All @@ -7,8 +7,6 @@
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
#===------------------------------------------------------------------------===#

r"""
sourcekitd framework bindings
Expand Down
4 changes: 1 addition & 3 deletions tools/SourceKit/bindings/python/sourcekitd/capi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#===- capi.py - sourcekitd Python Bindings -------------------*- python -*--===#
# capi.py - sourcekitd Python Bindings -*- python -*-
#
# This source file is part of the Swift.org open source project
#
Expand All @@ -7,8 +7,6 @@
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
#===------------------------------------------------------------------------===#

from ctypes import (
CFUNCTYPE,
Expand Down
4 changes: 1 addition & 3 deletions tools/SourceKit/bindings/python/sourcekitd/request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#===- request.py - sourcekitd Python Bindings ----------------*- python -*--===#
# request.py - sourcekitd Python Bindings -*- python -*-
#
# This source file is part of the Swift.org open source project
#
Expand All @@ -7,8 +7,6 @@
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
#===------------------------------------------------------------------------===#

import capi

Expand Down
4 changes: 1 addition & 3 deletions utils/SwiftBuildSupport.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#===--- SwiftBuildSupport.py - Utilities for Swift build scripts -----------===#
# utils/SwiftBuildSupport.py - Utilities for Swift build scripts -*- python -*-
#
# This source file is part of the Swift.org open source project
#
Expand All @@ -7,8 +7,6 @@
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
#===------------------------------------------------------------------------===#

from __future__ import print_function

Expand Down
5 changes: 1 addition & 4 deletions utils/apply-fixit-edits.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

#===--- apply-fixit-edits.py - Tool for applying edits from .remap files ---===#
# utils/apply-fixit-edits.py - Apply edits from .remap files -*- python -*-
#
# This source file is part of the Swift.org open source project
#
Expand All @@ -9,8 +8,6 @@
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
#===------------------------------------------------------------------------===#

from __future__ import print_function

Expand Down
16 changes: 7 additions & 9 deletions utils/build-script
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#!/usr/bin/env python
#===--- build-script - The ultimate tool for building Swift ----------------===#
# utils/build-script - The ultimate tool for building Swift -*- python -*-
#
## This source file is part of the Swift.org open source project
##
## Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
## Licensed under Apache License v2.0 with Runtime Library Exception
##
## See http://swift.org/LICENSE.txt for license information
## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
# This source file is part of the Swift.org open source project
#
#===------------------------------------------------------------------------===#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors

from __future__ import print_function

Expand Down
4 changes: 1 addition & 3 deletions utils/sil-opt-verify-all-modules.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
#===------------------------------------------------------------------------===#
# utils/sil-opt-verify-all-modules.py - Verifies Swift modules -*- python -*-
#
# This source file is part of the Swift.org open source project
#
Expand All @@ -8,8 +8,6 @@
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
#===------------------------------------------------------------------------===#

from __future__ import print_function

Expand Down
4 changes: 1 addition & 3 deletions utils/update-checkout
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
#===--- update-checkout - Utility to update your local checkouts -----------===#
# utils/update-checkout - Utility to update your local checkouts -*- python -*-
#
# This source file is part of the Swift.org open source project
#
Expand All @@ -8,8 +8,6 @@
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
#===------------------------------------------------------------------------===#

from __future__ import print_function

Expand Down