Skip to content

Commit 72d9c4c

Browse files
Apply ruff/pyupgrade rule UP010
UP010 Unnecessary `__future__` import for target Python version Manually removed comments about Unicode literals.
1 parent 677a883 commit 72d9c4c

File tree

13 files changed

+19
-52
lines changed

13 files changed

+19
-52
lines changed

demo/btrfs-snap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
44
creates a exactly named snapshots and bails out if they exist
55
"""
6-
from __future__ import print_function
7-
86
import argparse
97
import fcntl
108
import os

demo/extern_python_varargs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import cffi
32

43
ffi = cffi.FFI()

demo/fastcsv.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import csv
32
import cffi
43

demo/gmp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import sys
32
#
43
# This is only a demo based on the GMP library.

demo/manual2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import _cffi_backend
32

43
ffi = _cffi_backend.FFI(b"manual2",

demo/pwuid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import sys, os
32

43
# run pwuid_build first, then make sure the shared object is on sys.path

demo/pyobj.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
referents = [] # list "object descriptor -> python object"
42
freelist = None
53

demo/readdir.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
# A Linux-only demo
32
#
43
import sys

demo/readdir2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
# A Linux-only demo, using set_source() instead of hard-coding the exact layouts
32
#
43
import sys

demo/readdir_ctypes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
# A Linux-only demo
32
#
43
# For comparison purposes, this is a ctypes version of readdir.py.

0 commit comments

Comments
 (0)