Skip to content
Open
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
4 changes: 2 additions & 2 deletions dbms/bin/enhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@


class Enhance(tkinter.Frame):
def __init__(self, master, image, name, enhancer, lo, hi):
tkinter.Frame.__init__(self, master)
def __init__(self, main, image, name, enhancer, lo, hi):
tkinter.Frame.__init__(self, main)

# set up the image
self.tkim = ImageTk.PhotoImage(image.mode, image.size)
Expand Down
4 changes: 2 additions & 2 deletions dbms/bin/painter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@


class PaintCanvas(tkinter.Canvas):
def __init__(self, master, image):
tkinter.Canvas.__init__(self, master,
def __init__(self, main, image):
tkinter.Canvas.__init__(self, main,
width=image.size[0], height=image.size[1])

# fill the canvas
Expand Down
4 changes: 2 additions & 2 deletions dbms/bin/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class UI(tkinter.Label):

def __init__(self, master, im):
def __init__(self, main, im):
self.im = im
if isinstance(self.im, list):
# list of images
Expand All @@ -32,7 +32,7 @@ def __init__(self, master, im):
else:
self.image = ImageTk.PhotoImage(im)

tkinter.Label.__init__(self, master, image=self.image, bg="black", bd=0)
tkinter.Label.__init__(self, main, image=self.image, bg="black", bd=0)

self.update()

Expand Down
4 changes: 2 additions & 2 deletions dbms/bin/thresholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@


class UI(tkinter.Frame):
def __init__(self, master, im, value=128):
tkinter.Frame.__init__(self, master)
def __init__(self, main, im, value=128):
tkinter.Frame.__init__(self, main)

self.image = im
self.value = value
Expand Down
6 changes: 3 additions & 3 deletions dbms/bin/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@

class UI(tkinter.Label):

def __init__(self, master, im):
def __init__(self, main, im):

if im.mode == "1":
# bitmap image
self.image = ImageTk.BitmapImage(im, foreground="white")
tkinter.Label.__init__(self, master, image=self.image, bd=0,
tkinter.Label.__init__(self, main, image=self.image, bd=0,
bg="black")

else:
# photo image
self.image = ImageTk.PhotoImage(im)
tkinter.Label.__init__(self, master, image=self.image, bd=0)
tkinter.Label.__init__(self, main, image=self.image, bd=0)

#
# script interface
Expand Down
8 changes: 4 additions & 4 deletions dbms/lib/python3.5/site-packages/PIL/ImageTk.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ def _show(image, title):
"""Helper for the Image.show method."""

class UI(tkinter.Label):
def __init__(self, master, im):
def __init__(self, main, im):
if im.mode == "1":
self.image = BitmapImage(im, foreground="white", master=master)
self.image = BitmapImage(im, foreground="white", main=main)
else:
self.image = PhotoImage(im, master=master)
tkinter.Label.__init__(self, master, image=self.image,
self.image = PhotoImage(im, main=main)
tkinter.Label.__init__(self, main, image=self.image,
bg="black", bd=0)

if not tkinter._default_root:
Expand Down
4 changes: 2 additions & 2 deletions dbms/lib/python3.5/site-packages/django/apps/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Apps(object):
"""

def __init__(self, installed_apps=()):
# installed_apps is set to None when creating the master registry
# installed_apps is set to None when creating the main registry
# because it cannot be populated at that point. Other registries must
# provide a list of installed apps and are populated immediately.
if installed_apps is None and hasattr(sys.modules[__name__], 'apps'):
Expand Down Expand Up @@ -51,7 +51,7 @@ def __init__(self, installed_apps=()):
# `lazy_model_operation()` and `do_pending_operations()` methods.
self._pending_operations = defaultdict(list)

# Populate apps and models, unless it's the master registry.
# Populate apps and models, unless it's the main registry.
if installed_apps is not None:
self.populate(installed_apps)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def gettext_noop(s):

# Default email address to use for various automated correspondence from
# the site managers.
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
DEFAULT_FROM_EMAIL = 'webmain@localhost'

# Subject-line prefix for email messages send with django.core.mail.mail_admins
# or ...mail_managers. Make sure to include the trailing space.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_table_list(self, cursor):
# Skip the sqlite_sequence system table used for autoincrement key
# generation.
cursor.execute("""
SELECT name, type FROM sqlite_master
SELECT name, type FROM sqlite_main
WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
ORDER BY name""")
return [TableInfo(row[0], row[1][0]) for row in cursor.fetchall()]
Expand Down Expand Up @@ -108,7 +108,7 @@ def get_relations(self, cursor, table_name):
relations = {}

# Schema for this table
cursor.execute("SELECT sql FROM sqlite_master WHERE tbl_name = %s AND type = %s", [table_name, "table"])
cursor.execute("SELECT sql FROM sqlite_main WHERE tbl_name = %s AND type = %s", [table_name, "table"])
try:
results = cursor.fetchone()[0].strip()
except TypeError:
Expand Down Expand Up @@ -136,7 +136,7 @@ def get_relations(self, cursor, table_name):
else:
field_name = field_desc.split()[0].strip('"')

cursor.execute("SELECT sql FROM sqlite_master WHERE tbl_name = %s", [table])
cursor.execute("SELECT sql FROM sqlite_main WHERE tbl_name = %s", [table])
result = cursor.fetchall()[0]
other_table_results = result[0].strip()
li, ri = other_table_results.index('('), other_table_results.rindex(')')
Expand All @@ -162,7 +162,7 @@ def get_key_columns(self, cursor, table_name):
key_columns = []

# Schema for this table
cursor.execute("SELECT sql FROM sqlite_master WHERE tbl_name = %s AND type = %s", [table_name, "table"])
cursor.execute("SELECT sql FROM sqlite_main WHERE tbl_name = %s AND type = %s", [table_name, "table"])
results = cursor.fetchone()[0].strip()
results = results[results.index('(') + 1:results.rindex(')')]

Expand Down Expand Up @@ -211,7 +211,7 @@ def get_primary_key_column(self, cursor, table_name):
Get the column name of the primary key for the given table.
"""
# Don't use PRAGMA because that causes issues with some transactions
cursor.execute("SELECT sql FROM sqlite_master WHERE tbl_name = %s AND type = %s", [table_name, "table"])
cursor.execute("SELECT sql FROM sqlite_main WHERE tbl_name = %s AND type = %s", [table_name, "table"])
row = cursor.fetchone()
if row is None:
raise ValueError("Table %s does not exist" % table_name)
Expand Down Expand Up @@ -265,7 +265,7 @@ def get_constraints(self, cursor, table_name):
# SQLite doesn't support any index type other than b-tree
constraints[index]['type'] = Index.suffix
cursor.execute(
"SELECT sql FROM sqlite_master "
"SELECT sql FROM sqlite_main "
"WHERE type='index' AND name=%s" % self.connection.ops.quote_name(index)
)
orders = []
Expand Down
2 changes: 1 addition & 1 deletion dbms/lib/python3.5/site-packages/django/test/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def session(self):

def request(self, **request):
"""
The master request method. Composes the environment dictionary
The main request method. Composes the environment dictionary
and passes to the handler, returning the result of the handler.
Assumes defaults for the query environment, which can be overridden
using the arguments to the request.
Expand Down
2 changes: 1 addition & 1 deletion dbms/lib/python3.5/site-packages/django/test/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class RemoteTestResult(object):
Record information about which tests have succeeded and which have failed.

The sole purpose of this class is to record events in the child processes
so they can be replayed in the master process. As a consequence it doesn't
so they can be replayed in the main process. As a consequence it doesn't
inherit unittest.TestResult and doesn't attempt to implement all its API.

The implementation matches the unpythonic coding style of unittest2.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ class RefreshOption(_Constants):
'HOSTS': (1 << 3, 'Flush host cache'),
'STATUS': (1 << 4, 'Flush status variables'),
'THREADS': (1 << 5, 'Flush thread cache'),
'SLAVE': (1 << 6, 'Reset master info and restart slave thread'),
'SLAVE': (1 << 6, 'Reset main info and restart subordinate thread'),
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
CR_EMBEDDED_CONNECTION = u"Embedded server"
CR_PROBE_SLAVE_STATUS = u"Error on SHOW SLAVE STATUS:"
CR_PROBE_SLAVE_HOSTS = u"Error on SHOW SLAVE HOSTS:"
CR_PROBE_SLAVE_CONNECT = u"Error connecting to slave:"
CR_PROBE_MASTER_CONNECT = u"Error connecting to master:"
CR_PROBE_SLAVE_CONNECT = u"Error connecting to subordinate:"
CR_PROBE_MASTER_CONNECT = u"Error connecting to main:"
CR_SSL_CONNECTION_ERROR = u"SSL connection error: %-.100s"
CR_MALFORMED_PACKET = u"Malformed packet"
CR_WRONG_LICENSE = u"This client library is licensed only for use with MySQL servers having '%s' license"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,9 @@ def __init__(self, entries=None):
self.add_entry(entry)

@classmethod
def _build_master(cls):
def _build_main(cls):
"""
Prepare the master working set.
Prepare the main working set.
"""
ws = cls()
try:
Expand Down Expand Up @@ -3016,9 +3016,9 @@ def _initialize(g=globals()):


@_call_aside
def _initialize_master_working_set():
def _initialize_main_working_set():
"""
Prepare the master working set and make the ``require()``
Prepare the main working set and make the ``require()``
API available.

This function has explicit effects on the global state
Expand All @@ -3028,7 +3028,7 @@ def _initialize_master_working_set():
Invocation by other packages is unsupported and done
at their own risk.
"""
working_set = WorkingSet._build_master()
working_set = WorkingSet._build_main()
_declare_state('object', working_set=working_set)

require = working_set.require
Expand Down
4 changes: 2 additions & 2 deletions dbms/lib/python3.5/site-packages/pip/vcs/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def update(self, dest, rev_options):
self.run_command(['fetch', '-q', '--tags'], cwd=dest)
else:
self.run_command(['fetch', '-q'], cwd=dest)
# Then reset to wanted revision (maybe even origin/master)
# Then reset to wanted revision (maybe even origin/main)
if rev_options:
rev_options = self.check_rev_options(
rev_options[0], dest, rev_options,
Expand All @@ -133,7 +133,7 @@ def obtain(self, dest):
rev_options = [rev]
rev_display = ' (to %s)' % rev
else:
rev_options = ['origin/master']
rev_options = ['origin/main']
rev_display = ''
if self.check_destination(dest, url, rev_options, rev_display):
logger.info(
Expand Down
10 changes: 5 additions & 5 deletions dbms/lib/python3.5/site-packages/pkg_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,9 @@ def __init__(self, entries=None):
self.add_entry(entry)

@classmethod
def _build_master(cls):
def _build_main(cls):
"""
Prepare the master working set.
Prepare the main working set.
"""
ws = cls()
try:
Expand Down Expand Up @@ -2974,9 +2974,9 @@ def _initialize(g=globals()):


@_call_aside
def _initialize_master_working_set():
def _initialize_main_working_set():
"""
Prepare the master working set and make the ``require()``
Prepare the main working set and make the ``require()``
API available.

This function has explicit effects on the global state
Expand All @@ -2986,7 +2986,7 @@ def _initialize_master_working_set():
Invocation by other packages is unsupported and done
at their own risk.
"""
working_set = WorkingSet._build_master()
working_set = WorkingSet._build_main()
_declare_state('object', working_set=working_set)

require = working_set.require
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ def update_dist_caches(dist_path, fix_zipimporter_caches):
# There are several other known sources of stale zipimport.zipimporter
# instances that we do not clear here, but might if ever given a reason to
# do so:
# * Global setuptools pkg_resources.working_set (a.k.a. 'master working
# * Global setuptools pkg_resources.working_set (a.k.a. 'main working
# set') may contain distributions which may in turn contain their
# zipimport.zipimporter loaders.
# * Several zipimport.zipimporter loaders held by local variables further
Expand Down