mirror of https://github.com/facebook/rocksdb.git
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:
parent
6cbb104663
commit
38e9e6903e
|
@ -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(
|
||||
|
|
|
@ -14,7 +14,7 @@ import sys
|
|||
import time
|
||||
|
||||
|
||||
class ColorString(object):
|
||||
class ColorString:
|
||||
"""Generate colorful strings on terminal"""
|
||||
|
||||
HEADER = "\033[95m"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue