Del `(object)` from 200 inc instagram-server/distillery/slipstream/thrift_models/StoryFeedMediaSticker/ttypes.py

Summary: Python3 makes the use of `(object)` in class inheritance unnecessary. Let's modernize our code by eliminating this.

Reviewed By: itamaro

Differential Revision: D48673915

fbshipit-source-id: a1a6ae8572271eb2898b748c8216ea68e362f06a
This commit is contained in:
Richard Barnes 2023-08-25 16:22:09 -07:00 committed by Facebook GitHub Bot
parent 6cbb104663
commit 38e9e6903e
4 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ def pretty_list(lst, indent=8):
return res
class TARGETSBuilder(object):
class TARGETSBuilder:
def __init__(self, path, extra_argv):
self.path = path
header = targets_cfg.rocksdb_target_header_template.format(

View File

@ -14,7 +14,7 @@ import sys
import time
class ColorString(object):
class ColorString:
"""Generate colorful strings on terminal"""
HEADER = "\033[95m"

View File

@ -15,7 +15,7 @@ import re
import sys
class ErrorParserBase(object):
class ErrorParserBase:
def parse_error(self, line):
"""Parses a line of test output. If it contains an error, returns a
formatted message describing the error; otherwise, returns None.

View File

@ -492,7 +492,7 @@ class PolicyStats:
file.write(row + "\n")
class Policy(object):
class Policy:
"""
A policy maintains a set of evicted keys. It returns a reward of one to
itself if it has not evicted a missing key. Otherwise, it gives itself 0
@ -654,7 +654,7 @@ class CostClassPolicy(Policy):
return "cc"
class Cache(object):
class Cache:
"""
This is the base class for the implementations of alternative cache
replacement policies.
@ -1310,7 +1310,7 @@ class GDSizeCache(Cache):
return True
class Deque(object):
class Deque:
"""A Deque class facilitates the implementation of LRU and ARC."""
def __init__(self):