diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/datadog_checks_dev/setup.py b/datadog_checks_dev/setup.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/setup.py
+++ b/datadog_checks_dev/setup.py
@@ -74,6 +74,7 @@ setup(
'aiomultiprocess',
'atomicwrites',
'beautifulsoup4>=4.9.3',
+ 'black==21.10b0'... | Fix black package (#<I>) | py |
diff --git a/sacred/commands.py b/sacred/commands.py
index <HASH>..<HASH> 100644
--- a/sacred/commands.py
+++ b/sacred/commands.py
@@ -5,6 +5,7 @@
import pprint
import pydoc
import re
+import sys
from collections import namedtuple, OrderedDict
from colorama import Fore, Style
@@ -58,9 +59,14 @@ def _non_unicode_... | Fix #<I> (#<I>) | py |
diff --git a/aiogram/types/user.py b/aiogram/types/user.py
index <HASH>..<HASH> 100644
--- a/aiogram/types/user.py
+++ b/aiogram/types/user.py
@@ -69,7 +69,7 @@ class User(base.TelegramObject):
as_html = True
if name is None:
- name = self.mention
+ name = self.full_name
... | Use User.full_name instead User.mention in User.get_mention() method. | py |
diff --git a/salt/utils/decorators.py b/salt/utils/decorators.py
index <HASH>..<HASH> 100644
--- a/salt/utils/decorators.py
+++ b/salt/utils/decorators.py
@@ -45,13 +45,13 @@ class Depends(object):
return function
@classmethod
- def enforce_dependencies(self, functions):
+ def enforce_dependencies... | Depends.enforce_dependencies: self => cls, since it's a classmethod | py |
diff --git a/mrivis/base.py b/mrivis/base.py
index <HASH>..<HASH> 100644
--- a/mrivis/base.py
+++ b/mrivis/base.py
@@ -760,7 +760,7 @@ class Carpet(object):
Optional rescaling of the data.
"""
- image_ND = read_image(image_ND, bkground_thresh=None)
+ image_ND = read_image(image_ND, bkg... | adapting read_image for 4D images | py |
diff --git a/rejected/consumer.py b/rejected/consumer.py
index <HASH>..<HASH> 100644
--- a/rejected/consumer.py
+++ b/rejected/consumer.py
@@ -1,5 +1,5 @@
"""
-consumer.py
+Class
"""
__author__ = 'Gavin M. Roy'
@@ -17,6 +17,7 @@ from . import common
from . import utils
from . import __version__
+_AMQP_APP_ID ... | Minor cleanup based upon code review feedback | py |
diff --git a/src/runcommands/command.py b/src/runcommands/command.py
index <HASH>..<HASH> 100644
--- a/src/runcommands/command.py
+++ b/src/runcommands/command.py
@@ -230,7 +230,7 @@ class Command:
# XXX: Read-only property
return self.__data
- @cached_property
+ @property
def prog_name(s... | Convert Command.prog_name from @cached_property to @property This property relies on subcommands being fully defined. | py |
diff --git a/cpe/CPE1_1/cpe1_1.py b/cpe/CPE1_1/cpe1_1.py
index <HASH>..<HASH> 100644
--- a/cpe/CPE1_1/cpe1_1.py
+++ b/cpe/CPE1_1/cpe1_1.py
@@ -93,6 +93,10 @@ class CPE1_1(CPEBASE):
>>> CPE1_1(uri) # doctest: +ELLIPSIS
<__main__.CPE1_1 object at 0x...>
+ - TEST: CPE with special characters
+ >>> uri = ... | Fix main regular expression of CPE version <I> and test special characters added | py |
diff --git a/shinken/macroresolver.py b/shinken/macroresolver.py
index <HASH>..<HASH> 100644
--- a/shinken/macroresolver.py
+++ b/shinken/macroresolver.py
@@ -343,19 +343,19 @@ class MacroResolver(Borg):
# Get Fri 15 May 11:42:39 CEST 2009
def _get_long_date_time(self):
- return time.strftime("%a %d ... | Remove useless second parameter of time.strftime(). This defaults to localtime() anyway, no need to pass it. | py |
diff --git a/analytical/tests/test_tag_chartbeat.py b/analytical/tests/test_tag_chartbeat.py
index <HASH>..<HASH> 100644
--- a/analytical/tests/test_tag_chartbeat.py
+++ b/analytical/tests/test_tag_chartbeat.py
@@ -31,7 +31,7 @@ class ChartbeatTagTestCaseWithSites(TagTestCase):
call_command("syncdb", verbosity... | CHARTBEAT_USER_ID is already set at the class level | py |
diff --git a/housekeeper/store/api.py b/housekeeper/store/api.py
index <HASH>..<HASH> 100644
--- a/housekeeper/store/api.py
+++ b/housekeeper/store/api.py
@@ -111,7 +111,7 @@ def cases(query_str=None, missing=None, version=None, onhold=None):
if query_str:
query = query.filter(Case.name.like("%{}%".format... | fix issue in api related to on hold filter | py |
diff --git a/mahjong/hand_calculating/hand.py b/mahjong/hand_calculating/hand.py
index <HASH>..<HASH> 100644
--- a/mahjong/hand_calculating/hand.py
+++ b/mahjong/hand_calculating/hand.py
@@ -286,7 +286,7 @@ class HandCalculator(object):
# we don't need to add dora to yakuman
if not y... | Fix small regression with not updated tiles for dora list | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -125,6 +125,7 @@ import htmlentitydefs
import logging
import re
import time
+import types
import urllib
import urllib2
from urlparse import urlsplit, urlunsplit
@@ -618,10 +619,15 @@ class Solr(object):
term... | Updated suggest_terms so that it correctly handles response from Solr 3.x releases. | py |
diff --git a/frame.py b/frame.py
index <HASH>..<HASH> 100644
--- a/frame.py
+++ b/frame.py
@@ -53,7 +53,7 @@ class Frame(object):
`rsv1`, `rsv2` and `rsv3` are booleans indicating bit values for RSV1,
RVS2 and RSV3, which are only non-zero if defined so by extensions.
"""
- if mask:
+ ... | Don't regenerate masking key if a custom key is given | py |
diff --git a/chisel/doc.py b/chisel/doc.py
index <HASH>..<HASH> 100644
--- a/chisel/doc.py
+++ b/chisel/doc.py
@@ -436,19 +436,16 @@ def _addDocText(parent, doc):
# Group paragraphs
paragraphs = []
- if not isinstance(doc, (list, tuple)):
- doc = (line.strip() for line in doc.splitlines())
- if... | Handle string doc text more cleanly. | py |
diff --git a/core/dbt/context/providers.py b/core/dbt/context/providers.py
index <HASH>..<HASH> 100644
--- a/core/dbt/context/providers.py
+++ b/core/dbt/context/providers.py
@@ -124,6 +124,11 @@ class BaseDatabaseWrapper:
if packages is None:
search_packages = [None]
+ elif isinstance(pa... | check if packages is a string and error out | py |
diff --git a/django_dev/dev.py b/django_dev/dev.py
index <HASH>..<HASH> 100644
--- a/django_dev/dev.py
+++ b/django_dev/dev.py
@@ -203,7 +203,7 @@ class DevTools(object):
"""
def raise_():
- error_str = 'Virtual environments are not created run. Please run `bootstrap` command.'
+ ... | User-friendly message when operate in not boostrapped directory. | py |
diff --git a/astroplan/constraints.py b/astroplan/constraints.py
index <HASH>..<HASH> 100644
--- a/astroplan/constraints.py
+++ b/astroplan/constraints.py
@@ -355,7 +355,7 @@ class SunSeparationConstraint(Constraint):
def compute_constraint(self, times, observer, targets):
sunaltaz = observer.altaz(times,... | improved docstring for compute_constraint; reverted workaround in MoonSeparationConstraint | py |
diff --git a/pyoram/storage/virtualheap_build.py b/pyoram/storage/virtualheap_build.py
index <HASH>..<HASH> 100644
--- a/pyoram/storage/virtualheap_build.py
+++ b/pyoram/storage/virtualheap_build.py
@@ -10,10 +10,10 @@ ffi = cffi.FFI()
ffi.cdef(
"""
int calculate_bucket_level(unsigned int k,
- ... | Use larger int type to get windows tests passing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from distutils.core import setup
setup(
name = 'nolds',
packages = ['nolds'],
- version = '0.1',
+ version = '0.1.0',
description = 'Nonlinear measures for dynamical systems (based on one-dimensional t... | updates version number to 3-number style | py |
diff --git a/ocrmypdf/main.py b/ocrmypdf/main.py
index <HASH>..<HASH> 100755
--- a/ocrmypdf/main.py
+++ b/ocrmypdf/main.py
@@ -636,7 +636,6 @@ def ocr_tesseract_hocr(
)
-@active_if(options.pdf_renderer == 'hocr')
@collate(
input=[rasterize_with_ghostscript, preprocess_deskew, preprocess_clean],
... | Fix test suite by running select_image_for_pdf unconditionally The purpose of this change that caused the problem was a minor optimization for the tesseract renderer path that had it pull an image from select_image_for_pdf so that it could use a JPEG instead of PNG, instead of taking it from preprocess_clean where it ... | py |
diff --git a/glue/pipeline.py b/glue/pipeline.py
index <HASH>..<HASH> 100644
--- a/glue/pipeline.py
+++ b/glue/pipeline.py
@@ -2069,7 +2069,7 @@ class LSCDataFindJob(CondorDAGJob, AnalysisJob):
the LSCdataFind options are read.
"""
self.__executable = config_file.get('condor','datafind')
- self.__univ... | changed LSCdataFind universe from local to scheduler until condor is fixed | py |
diff --git a/io3d/dcmreaddata.py b/io3d/dcmreaddata.py
index <HASH>..<HASH> 100644
--- a/io3d/dcmreaddata.py
+++ b/io3d/dcmreaddata.py
@@ -950,7 +950,7 @@ def sort_list_of_dicts(lst_of_dct, keys, reverse=False, **sort_args):
# dcmdir = lst_of_dct[:]
dcmdir = lst_of_dct
# sorting is based on two values in... | use zero because Nones are not sortable | py |
diff --git a/tensor2tensor/trax/inputs.py b/tensor2tensor/trax/inputs.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/trax/inputs.py
+++ b/tensor2tensor/trax/inputs.py
@@ -27,6 +27,7 @@ import gin
import numpy as np
+from tensor2tensor import problems_colab as t2t_problems
import tensorflow as tf
import tenso... | Import T2T problems at top to ease use in colab. PiperOrigin-RevId: <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ else:
setup(
name='zipline',
- version='0.5.7',
+ version='0.5.8',
description='A backtester for financial algorithms.',
author='Quantopian Inc.',
author_email='opensource@quantopian... | REL: <I> - Fixes bug/confusion caused by pandoc conversion in setup.py - Slight refactorings, removing missing methods, etc. | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -2558,6 +2558,27 @@ class Tree(Element):
if self.ParentForm.CurrentlyRunningMainloop:
self.ParentForm.TKroot.quit()
+ def add_treeview_data(self, node):
+ # pri... | Update method for Tree Elements... gnats.. these users are like gnats | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(name='summon_process',
- version='0.1.2',
+ version='0.1.3',
description='Process coordinator for tests',
long_description=file('README... | Preparing for release <I> | py |
diff --git a/ctfile/ctfile.py b/ctfile/ctfile.py
index <HASH>..<HASH> 100644
--- a/ctfile/ctfile.py
+++ b/ctfile/ctfile.py
@@ -500,6 +500,16 @@ class Ctab(CTfile):
atom_number,
atom_symbol))
+ def remove_iso(self, atom_symbol, atom_number):
+ atom = self.atom_by_number(atom... | Added remove_iso method. | py |
diff --git a/bxml/xml.py b/bxml/xml.py
index <HASH>..<HASH> 100644
--- a/bxml/xml.py
+++ b/bxml/xml.py
@@ -263,8 +263,7 @@ class XML(File):
cmd.pop(cmd.index('-c'))
try:
fn = self.fn
- tempf = None
- if fn is None:
+ if fn ... | XML.jing() now handles the case where the XML.fn is not None but the file doesn't exist – in this case as when XML.fn is None, a tempfile is written for jing to use. | py |
diff --git a/jira/resources.py b/jira/resources.py
index <HASH>..<HASH> 100644
--- a/jira/resources.py
+++ b/jira/resources.py
@@ -391,7 +391,7 @@ class Comment(Resource):
if body:
data['body'] = body
if visibility:
- data['vissibility'] = visibility
+ data['visibili... | Comment: fix typo in comment 'visibility' name Fix a trivial typo in comment unit: 'vissibility' --> 'visibility'. | py |
diff --git a/wallace/models.py b/wallace/models.py
index <HASH>..<HASH> 100644
--- a/wallace/models.py
+++ b/wallace/models.py
@@ -558,6 +558,13 @@ class Network(Base):
.filter_by(participant_uuid=uuid)\
.all()
+ vectors = relationship(
+ "Vector",
+ secondary=Node.__table__... | re-adding vectors = relationship | py |
diff --git a/galpy/orbit_src/Orbit.py b/galpy/orbit_src/Orbit.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit_src/Orbit.py
+++ b/galpy/orbit_src/Orbit.py
@@ -3833,9 +3833,9 @@ v obs=[X,Y,Z,vx,vy,vz] - (optional) position and velocity of observer
simbad_table= simbad.query_object(name)
e... | Fixed bug causing an exception when SIMBAD fails to find the target object | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,25 @@ from setuptools import setup
from setuptools.command.install import install as orig_install
+try:
+ from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
+
+ class bdist_wheel(_bdist_wheel):
+
+ ... | dumb-init is not a pure python package | py |
diff --git a/tenant_schemas/tests/test_tenants.py b/tenant_schemas/tests/test_tenants.py
index <HASH>..<HASH> 100644
--- a/tenant_schemas/tests/test_tenants.py
+++ b/tenant_schemas/tests/test_tenants.py
@@ -217,8 +217,12 @@ class TenantCommandTest(BaseTestCase):
Tenant(domain_url='localhost', schema_name='publ... | Update TenantCommandTest.test_command to run under Django <I> and <I>. | py |
diff --git a/tests/test_commands.py b/tests/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -115,10 +115,11 @@ def test_install_requirements_for_file(runner):
@all_runners
def test_init_file(runner, tmpdir):
target = tmpdir.join('foo.py')
- runner('ini... | [tests] Fix path usage for python <I> | py |
diff --git a/test/backup.py b/test/backup.py
index <HASH>..<HASH> 100755
--- a/test/backup.py
+++ b/test/backup.py
@@ -118,10 +118,16 @@ class TestBackup(unittest.TestCase):
self._insert_master(1)
timeout = 10
while True:
- result = tablet_replica1.mquery(
- 'vt_test_keyspace', 'select coun... | Deflaking this test: if table creation takes time to propagate through replication, we were raising an exception. | py |
diff --git a/salt/states/dockerio.py b/salt/states/dockerio.py
index <HASH>..<HASH> 100644
--- a/salt/states/dockerio.py
+++ b/salt/states/dockerio.py
@@ -82,7 +82,7 @@ Available Functions
.. note::
- The ``port_bindings`` argument above is a dictionary. The double
+ The ``ports`` argument above is a d... | doc: Docker state use ports and not port_bindings anymore | py |
diff --git a/sos/plugins/ctdb.py b/sos/plugins/ctdb.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/ctdb.py
+++ b/sos/plugins/ctdb.py
@@ -25,6 +25,7 @@ class Ctdb(Plugin, DebianPlugin, UbuntuPlugin):
def setup(self):
self.add_copy_spec([
+ "/etc/ctdb/nodes",
"/etc/ctdb/public_ad... | [ctdb] collect /etc/ctdb/nodes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@ def load_requirements(*requirements_paths):
setup(
name='edxval',
- version='0.1.1',
+ version='0.1.2',
author='edX',
url='http://github.com/edx/edx-val',
description='edx-val', | - Update setup to use in platform. | py |
diff --git a/tests/test_procrunner_system.py b/tests/test_procrunner_system.py
index <HASH>..<HASH> 100644
--- a/tests/test_procrunner_system.py
+++ b/tests/test_procrunner_system.py
@@ -72,6 +72,7 @@ def test_path_object_resolution(tmpdir):
), "overridden environment variable leaked into parent process"
+@pyt... | Ignore sporadic failure on <I> release candidate | py |
diff --git a/buildbot/status/mail.py b/buildbot/status/mail.py
index <HASH>..<HASH> 100644
--- a/buildbot/status/mail.py
+++ b/buildbot/status/mail.py
@@ -38,6 +38,7 @@ def defaultMessage(mode, name, build, results, master_status):
"""Generate a buildbot mail message and return a tuple of message text
and... | Clearer English in default mail message Use a few more words to describe the builder and project in an email message. Fixes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
import os
import sys
+import platform
from setuptools import setup
from setuptools.command.install import install
@@ -28,6 +29,9 @@ try:
plat = "manylinux1_i686"
elif cross_comp... | Set default macOS deployment target to <I> (#<I>) | py |
diff --git a/pylib/aeon/eos/connector.py b/pylib/aeon/eos/connector.py
index <HASH>..<HASH> 100644
--- a/pylib/aeon/eos/connector.py
+++ b/pylib/aeon/eos/connector.py
@@ -71,7 +71,8 @@ class Connector(object):
if not isinstance(contents, list):
raise RuntimeError('contents must be a list, for now'... | fix test error it appears unit test is using py3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,7 @@ setup(name='scikit-dsp-comm',
url='https://github.com/mwickert/scikit-dsp-comm',
package_dir={'sk_dsp_comm': 'sk_dsp_comm'},
packages=['sk_dsp_comm'],
+ license='BSD',
install_requ... | Adding license to setup.py file | py |
diff --git a/asammdf/mdf.py b/asammdf/mdf.py
index <HASH>..<HASH> 100644
--- a/asammdf/mdf.py
+++ b/asammdf/mdf.py
@@ -1411,6 +1411,23 @@ class MDF:
group.attrs["master"] = (
self.groups[group_index].channels[master_index].name
)... | hdf5 export: Adding timestamps values to each group HDF5 export was missing timestamps for the master channel(s) if single_time_base equals False. | py |
diff --git a/holoviews/ipython/__init__.py b/holoviews/ipython/__init__.py
index <HASH>..<HASH> 100644
--- a/holoviews/ipython/__init__.py
+++ b/holoviews/ipython/__init__.py
@@ -10,6 +10,7 @@ from ..core.options import Store
from ..element.comparison import ComparisonTestCase
from ..interface.collector import Collec... | Moved plotting API import before IPython magics | py |
diff --git a/librosa/core/constantq.py b/librosa/core/constantq.py
index <HASH>..<HASH> 100644
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Pitch-tracking and tuning estimation'''
+from __future__ import division
import numpy as n... | Be explicit about division types for n_fft (py3) | py |
diff --git a/pyocd/target/pack/cmsis_pack.py b/pyocd/target/pack/cmsis_pack.py
index <HASH>..<HASH> 100644
--- a/pyocd/target/pack/cmsis_pack.py
+++ b/pyocd/target/pack/cmsis_pack.py
@@ -47,7 +47,8 @@ class _DeviceInfo:
def _get_part_number_from_element(element: Element) -> str:
"""@brief Extract the part number ... | cmsis-pack: device: support Dname for variants. (#<I>) | py |
diff --git a/registrasion/controllers/conditions.py b/registrasion/controllers/conditions.py
index <HASH>..<HASH> 100644
--- a/registrasion/controllers/conditions.py
+++ b/registrasion/controllers/conditions.py
@@ -330,8 +330,10 @@ class SpeakerConditionController(IsMetByFilter, ConditionController):
class GroupMember... | Makes TeamMemberCondition work | py |
diff --git a/remoto/process.py b/remoto/process.py
index <HASH>..<HASH> 100644
--- a/remoto/process.py
+++ b/remoto/process.py
@@ -74,7 +74,7 @@ def _remote_run(channel, cmd, **kw):
channel.send({'warning': "command returned non-zero exit status: %s" % returncode})
-def extend_path(conn, arguments):
+d... | process: extend environments, do not overwrite | py |
diff --git a/quickbooks/client.py b/quickbooks/client.py
index <HASH>..<HASH> 100644
--- a/quickbooks/client.py
+++ b/quickbooks/client.py
@@ -1,15 +1,16 @@
try: # Python 3
import http.client as httplib
from urllib.parse import parse_qsl
+ bytes = bytes
except ImportError: # Python 2
import httpli... | fix for no builtins on travis | py |
diff --git a/bugwarrior/db.py b/bugwarrior/db.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/db.py
+++ b/bugwarrior/db.py
@@ -11,7 +11,7 @@ def synchronize(issues):
# Load info about the task database
tasks = tw.load_tasks()
- is_bugwarrior_task = lambda task: task['description'].startswith(MARKUP)
+ ... | Avoid a prickly task db. | py |
diff --git a/monero_serialize/xmrboost.py b/monero_serialize/xmrboost.py
index <HASH>..<HASH> 100644
--- a/monero_serialize/xmrboost.py
+++ b/monero_serialize/xmrboost.py
@@ -384,7 +384,9 @@ class Archive(x.Archive):
if self.writing:
await dump_uvarint(self.iobj, container_len)
if not... | boost: consistent container element version serialization | py |
diff --git a/exchangelib/items.py b/exchangelib/items.py
index <HASH>..<HASH> 100644
--- a/exchangelib/items.py
+++ b/exchangelib/items.py
@@ -1149,7 +1149,7 @@ class MeetingResponse(BaseMeetingItem):
MSDN: https://msdn.microsoft.com/en-us/library/office/aa564337(v=exchg.150).aspx
"""
ELEMENT_NAME = 'Mee... | Don't reusre the same FIELDS object | py |
diff --git a/src/you_get/util/fs.py b/src/you_get/util/fs.py
index <HASH>..<HASH> 100644
--- a/src/you_get/util/fs.py
+++ b/src/you_get/util/fs.py
@@ -13,6 +13,7 @@ def legitimize(text, os=detect_os()):
ord('|'): '-',
})
+ # FIXME: do some filesystem detection
if os == 'windows' or os == 'cygwin... | util.fs: \t not allowed in FAT (close #<I>) | py |
diff --git a/rope/base/stdmods.py b/rope/base/stdmods.py
index <HASH>..<HASH> 100644
--- a/rope/base/stdmods.py
+++ b/rope/base/stdmods.py
@@ -5,8 +5,8 @@ from rope.base import utils
def _stdlib_path():
- import inspect
- return os.path.dirname(inspect.getsourcefile(inspect))
+ import distutils.sysconfig
... | base/stdmods.py: use distutils facilities to get stdlib path previous code "inspect.getsourcefile(inspect)" reported not to work on OS X. thanks jeremylujan for proposal. | py |
diff --git a/sllurp/inventory.py b/sllurp/inventory.py
index <HASH>..<HASH> 100755
--- a/sllurp/inventory.py
+++ b/sllurp/inventory.py
@@ -12,8 +12,7 @@ tagsSeen = 0
def tagSeenCallback (llrpMsg):
"""Function to run each time the reader reports seeing one or more tags."""
global tagsSeen
- tagSeenDict = l... | no longer need to explicitly deserialize messages in cb | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,14 +22,10 @@ try:
import numpy as np
from distutils.extension import Extension
- include = np.get_include()
- if not isinstance(include, str):
- raise ImportError('numpy is mocked')
-
countbit... | Revert to previous version. Numpy is not mocked when read the docs is running setup.py | py |
diff --git a/nonebot/plugin.py b/nonebot/plugin.py
index <HASH>..<HASH> 100644
--- a/nonebot/plugin.py
+++ b/nonebot/plugin.py
@@ -554,7 +554,7 @@ def _make_event_deco(post_type: str):
@overload
-def on_notice(func: NoticeHandler_T) -> NoticeHandler_T: ...
+def on_notice(__func: NoticeHandler_T) -> NoticeHandler_T... | fix: on_notice on_request overload param naming *events need not be changed because they cant be passed named | py |
diff --git a/escpos/impl/epson.py b/escpos/impl/epson.py
index <HASH>..<HASH> 100644
--- a/escpos/impl/epson.py
+++ b/escpos/impl/epson.py
@@ -178,6 +178,17 @@ class GenericESCPOS(object):
self.device.write('\x1B\x61\x02')
+ def set_code_page(self, code_page):
+ """Set code page for character pri... | Base: Implemented code page setting. | py |
diff --git a/pymongo/settings.py b/pymongo/settings.py
index <HASH>..<HASH> 100644
--- a/pymongo/settings.py
+++ b/pymongo/settings.py
@@ -29,8 +29,8 @@ class TopologySettings(object):
set_name=None,
pool_class=None,
pool_options=None,
- monitor_class=monitor.Monitor,
- conditio... | All TopologySettings options should default to None. | py |
diff --git a/cltk/tests/test_corpus.py b/cltk/tests/test_corpus.py
index <HASH>..<HASH> 100644
--- a/cltk/tests/test_corpus.py
+++ b/cltk/tests/test_corpus.py
@@ -324,6 +324,15 @@ argenteo polubro, aureo eclutro. """
with self.assertRaises(AssertionError):
CorpusImporter('bad_lang')
+ def tes... | Added test for import of antique_digiliblt | py |
diff --git a/wire.py b/wire.py
index <HASH>..<HASH> 100644
--- a/wire.py
+++ b/wire.py
@@ -723,7 +723,7 @@ Note that this is a platform-independent method of activating IME
resources.append(
SessionResource('/session/:sessionId/frame').
- Post('''Change focus to another frame on the page. If the frame ... | LukeIS: updating wire protocol doc from frame switching the parameter is 'id' (so updating reference to it as 'ID' to lowercase). Fixes Issue <I> r<I> | py |
diff --git a/shoebot/data/typography.py b/shoebot/data/typography.py
index <HASH>..<HASH> 100644
--- a/shoebot/data/typography.py
+++ b/shoebot/data/typography.py
@@ -28,6 +28,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import sys
+fr... | Add weights to FakePango to help on readthedocs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ from re import sub as re_sub
from setuptools import setup, find_packages
requires = ['itsdangerous', 'Jinja2', 'misaka>=2.0,<3.0', 'html5lib',
- 'werkzeug>=1.0', 'bleach', 'Flask-Caching>=1.9', 'Fla... | setup.py: Remove flask-caching, flask deps Not needed any more since the cache handling was replaced by a drop-in imported solution in `isso/utils/cache.py` | py |
diff --git a/owlbot.py b/owlbot.py
index <HASH>..<HASH> 100644
--- a/owlbot.py
+++ b/owlbot.py
@@ -21,7 +21,7 @@ logging.basicConfig(level=logging.DEBUG)
common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(source_location='build/src')
-s.copy(templates, excludes=['.jsdoc.js', '.github... | chore: do not let owlbot change repo settings (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ def main():
setup(
name='shipane_sdk',
- version='1.4.1',
+ version='1.4.2',
description=u'实盘易(ShiPanE)Python SDK,通达信自动化交易 API。',
long_description=long_descripti... | Increment version to <I> | py |
diff --git a/eqcorrscan/utils/correlate.py b/eqcorrscan/utils/correlate.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/utils/correlate.py
+++ b/eqcorrscan/utils/correlate.py
@@ -990,6 +990,10 @@ def _fmf_gpu(templates, stream, *args, **kwargs):
"""
Thin wrapper of fmf_multi_xcorr setting arch to gpu.
""... | Cope with GPU FMF not included | py |
diff --git a/tortoise/fields.py b/tortoise/fields.py
index <HASH>..<HASH> 100644
--- a/tortoise/fields.py
+++ b/tortoise/fields.py
@@ -28,7 +28,7 @@ JSON_LOADS = json.loads
class _FieldMeta(type):
def __new__(mcs, name, bases, attrs):
- if len(bases) > 1:
+ if len(bases) > 1 and bases[0] is Field:... | Field multiple inheritence fix (#<I>) * Fixed the _FieldMeta class hasn't checked if the 1st base class was Field, so would break with mixins. * The Field class now calls super().__init__, so the __init__ of 2nd base class is reached. | py |
diff --git a/ethereum/tools/_solidity.py b/ethereum/tools/_solidity.py
index <HASH>..<HASH> 100644
--- a/ethereum/tools/_solidity.py
+++ b/ethereum/tools/_solidity.py
@@ -98,7 +98,7 @@ def solc_parse_output(compiler_output):
# decoding can fail if the compiled contract has unresolved symbols
t... | Catch the correct exception on python 3 | py |
diff --git a/bucketcache/tests/test_bucketcache.py b/bucketcache/tests/test_bucketcache.py
index <HASH>..<HASH> 100644
--- a/bucketcache/tests/test_bucketcache.py
+++ b/bucketcache/tests/test_bucketcache.py
@@ -115,7 +115,7 @@ def test_complex_keys(cache_all):
complex_keys = [
CustomObject('hello', [1, ... | Use different complex key, range() doesn't compare equal on Python <I> | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -343,6 +343,9 @@ def get_site_collection(oqparam):
mesh.lons, mesh.lats, mesh.depths, oqparam)
ss = os.environ.g... | Added a comment [skip CI] | py |
diff --git a/astor/codegen.py b/astor/codegen.py
index <HASH>..<HASH> 100644
--- a/astor/codegen.py
+++ b/astor/codegen.py
@@ -13,8 +13,8 @@ It was derived from a modified version found here:
import ast
-from astor.misc import ExplicitNodeVisitor
-from astor.misc import get_boolop, get_binop, get_cmpop, get_unaryo... | Switch to relative imports in astor/codegen.py. | py |
diff --git a/editor.py b/editor.py
index <HASH>..<HASH> 100644
--- a/editor.py
+++ b/editor.py
@@ -221,9 +221,12 @@ class Editor:
self.update_screen()
elif isinstance(key, bytes) and key.startswith(b"\x1b[M") and len(key) == 6:
row = key[5] - 33
- if row < self.height:
+ ... | editor: Correct position cursor on mouse click. Take into account editor window bounds. | py |
diff --git a/tests/test_sdist.py b/tests/test_sdist.py
index <HASH>..<HASH> 100644
--- a/tests/test_sdist.py
+++ b/tests/test_sdist.py
@@ -471,10 +471,13 @@ class SDistTestCase(PyPIRCCommandTestCase):
# making sure we have the good rights
archive_name = join(self.tmp_dir, 'dist', 'fake-1.0.tar.gz')
... | Issue #<I>: Forward port limited test from Python <I>, fixing failing buildbot tests on BSD-based platforms. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ setuptools.setup(
author = "Evan Hubinger",
author_email = "evanjhub@gmail.com",
classifiers = [
- "Development Status :: 4 - Beta",
+ "Development Status :: 5 - Production/Stable",
... | Sets to production/stable on PyPI | py |
diff --git a/trakt/client.py b/trakt/client.py
index <HASH>..<HASH> 100644
--- a/trakt/client.py
+++ b/trakt/client.py
@@ -5,7 +5,7 @@ from trakt.interfaces.base import InterfaceProxy
import logging
-__version__ = '2.1.0'
+__version__ = '2.1.1'
log = logging.getLogger(__name__) | Bumped version to <I> | py |
diff --git a/ndb/__init__.py b/ndb/__init__.py
index <HASH>..<HASH> 100644
--- a/ndb/__init__.py
+++ b/ndb/__init__.py
@@ -6,14 +6,14 @@ __all__ = []
# TODO: Anything from eventloop or utils? (They'd go here.)
-from .tasklets import *
+from tasklets import *
__all__ += tasklets.__all__
-from .model import * #... | Use implicit relative imports. Fixes issue <I>. (Again.) Fixes issue <I>. | py |
diff --git a/rest_framework_jwt/utils.py b/rest_framework_jwt/utils.py
index <HASH>..<HASH> 100644
--- a/rest_framework_jwt/utils.py
+++ b/rest_framework_jwt/utils.py
@@ -54,7 +54,8 @@ def jwt_decode_handler(token):
verify_expiration=api_settings.JWT_VERIFY_EXPIRATION,
leeway=api_settings.JWT_LEEWAY,
... | Set allowed algorithms when decoding Note: This feature is new in PyJWT <I>. | py |
diff --git a/suds/__init__.py b/suds/__init__.py
index <HASH>..<HASH> 100644
--- a/suds/__init__.py
+++ b/suds/__init__.py
@@ -74,13 +74,13 @@ class SoapHeadersNotPermitted(Exception):
class WebFault(Exception):
def __init__(self, fault, document):
if hasattr(fault, 'faultstring'):
- Exception... | Make it clear who raised the errors Since this suds package is specifically for Salesforce, let's be explicit that the fault is theirs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ def main():
setup(
name='shipane_sdk',
- version='1.4.0',
+ version='1.4.1',
description=u'实盘易(ShiPanE)Python SDK,通达信自动化交易 API。',
long_description=long_descripti... | Increment version to <I> | py |
diff --git a/threads/search_indexes.py b/threads/search_indexes.py
index <HASH>..<HASH> 100644
--- a/threads/search_indexes.py
+++ b/threads/search_indexes.py
@@ -9,7 +9,6 @@ Search indexes for the threads app.
from datetime import datetime
from haystack import indexes
-from base.models import UserProfile
from thr... | removed unnecessary import from threads/search_indexes.py | py |
diff --git a/gspread/worksheet.py b/gspread/worksheet.py
index <HASH>..<HASH> 100644
--- a/gspread/worksheet.py
+++ b/gspread/worksheet.py
@@ -88,6 +88,11 @@ class Worksheet:
return WORKSHEET_DRIVE_URL % (self.spreadsheet.id, self.id)
@property
+ def index(self):
+ """Worksheet index."""
+ ... | Improvement - Add `Worksheet.index` property Expose worksheet index property. | py |
diff --git a/serfclient/connection.py b/serfclient/connection.py
index <HASH>..<HASH> 100644
--- a/serfclient/connection.py
+++ b/serfclient/connection.py
@@ -2,7 +2,6 @@ import socket
import sys
import msgpack
-from io import BytesIO
try:
from serfclient.result import SerfResult
except ImportError:
@@ -49,1... | Simplifying use of msgpack.Unpacker and removing BytesIO | py |
diff --git a/consul/base.py b/consul/base.py
index <HASH>..<HASH> 100644
--- a/consul/base.py
+++ b/consul/base.py
@@ -278,9 +278,6 @@ class Consul(object):
params['keys'] = True
if separator:
params['separator'] = separator
- dc = dc or self.agent.dc
- ... | Remove duplicate code (from bad merge) | py |
diff --git a/tests/test_utils_autoingest.py b/tests/test_utils_autoingest.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils_autoingest.py
+++ b/tests/test_utils_autoingest.py
@@ -66,7 +66,7 @@ class TestAutoIngest(unittest.TestCase):
data_name_2 = "ndiotest2%s%s%s%s%sf" % (self.i.year, self.i.month, self.i... | No Errors Locally, replicating | py |
diff --git a/mythril/analysis/module/base.py b/mythril/analysis/module/base.py
index <HASH>..<HASH> 100644
--- a/mythril/analysis/module/base.py
+++ b/mythril/analysis/module/base.py
@@ -79,7 +79,7 @@ class DetectionModule(ABC):
target.get_current_instruction()["address"],
get_code_hash(target... | Remove logging (#<I>) * Fix caching of issues across modules * Fix caching of issues across modules * Use log.info * Merge * remove comment | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
import os
import subprocess
-_BASE_VERSION = "2.7.0"
+_BASE_VERSION = "2.7.1"
def _generate_version(base_version): | dvc: bump to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,3 @@
-#! /usr/bin/env python
-
from setuptools import find_packages, setup
# import subprocess
# | Remove shebang line that directed to python2 | py |
diff --git a/utils/multires/generate.py b/utils/multires/generate.py
index <HASH>..<HASH> 100755
--- a/utils/multires/generate.py
+++ b/utils/multires/generate.py
@@ -47,9 +47,17 @@ except KeyError:
# Handle case of PATH not being set
nona = None
+# Subclass parser to add explaination for semi-option nona f... | Make issue with missing `nona` more obvious. | py |
diff --git a/sublimedsl/keymap.py b/sublimedsl/keymap.py
index <HASH>..<HASH> 100644
--- a/sublimedsl/keymap.py
+++ b/sublimedsl/keymap.py
@@ -165,7 +165,7 @@ class Binding():
"""
self.keys = keys
self.command = None
- self.args = []
+ self.args = {}
self.context = []
... | Fix initial value of Binding.args | py |
diff --git a/djangocms_text_ckeditor/models.py b/djangocms_text_ckeditor/models.py
index <HASH>..<HASH> 100644
--- a/djangocms_text_ckeditor/models.py
+++ b/djangocms_text_ckeditor/models.py
@@ -1,6 +1,11 @@
import re
import sys
+try:
+ from django.utils.encoding import force_text as force_unicode_or_text
+excep... | Use force_text for django <I>+ on yakky's recommendation | py |
diff --git a/etrago/cluster/disaggregation.py b/etrago/cluster/disaggregation.py
index <HASH>..<HASH> 100644
--- a/etrago/cluster/disaggregation.py
+++ b/etrago/cluster/disaggregation.py
@@ -468,8 +468,8 @@ class UniformDisaggregation(Disaggregation):
else ())
ws = weigh... | Split pseudo oneliner into two lines It's two lines anyway, it's clearer this way, and the values may be used in other places too, if the need occurs. | py |
diff --git a/zxbpp.py b/zxbpp.py
index <HASH>..<HASH> 100755
--- a/zxbpp.py
+++ b/zxbpp.py
@@ -582,6 +582,7 @@ def main(argv):
if OPTIONS.Sinclair.value:
include_once(search_filename('sinclair.bas', 0), 0)
parser.parse(lexer = LEXER, debug = OPTIONS.Debug.value > 2)
+ CURRENT_FILE.pop()
... | Fixed a bug with -Z flag | py |
diff --git a/demosys/opengl/texture.py b/demosys/opengl/texture.py
index <HASH>..<HASH> 100644
--- a/demosys/opengl/texture.py
+++ b/demosys/opengl/texture.py
@@ -307,6 +307,7 @@ class TextureArray(BaseTexture):
image = image.transpose(Image.FLIP_TOP_BOTTOM)
width, height, depth = image.size[0],... | Reverte texture change conflicting with sampler branch | py |
diff --git a/steampy/models.py b/steampy/models.py
index <HASH>..<HASH> 100644
--- a/steampy/models.py
+++ b/steampy/models.py
@@ -10,6 +10,7 @@ class GameOptions:
CS = PredefinedOptions('730', '2')
TF2 = PredefinedOptions('440', '2')
PUBG = PredefinedOptions('578080', '2')
+ RUST = PredefinedOptions(... | add rust game to predefined game options | py |
diff --git a/sortinghat/cmd/load.py b/sortinghat/cmd/load.py
index <HASH>..<HASH> 100644
--- a/sortinghat/cmd/load.py
+++ b/sortinghat/cmd/load.py
@@ -219,7 +219,8 @@ class Load(Command):
if matching:
try:
- matcher = create_identity_matcher(matching)
+ blacklist = ... | [cmd:load] Add blacklisting support | py |
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/client.py
+++ b/pyrogram/client/client.py
@@ -860,15 +860,18 @@ class Client:
)
)
- self.dispatcher.updates.put((
- ... | Fix index out of range for new messages | py |
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/indexes/common.py
+++ b/pandas/tests/indexes/common.py
@@ -912,6 +912,19 @@ class Base:
with pytest.raises(TypeError):
{} in idx._engine
+ def test_copy_copies_cache(sel... | TST: test that the .copy method on indexes copy the cache (#<I>) | py |
diff --git a/spinoff/util/async.py b/spinoff/util/async.py
index <HASH>..<HASH> 100644
--- a/spinoff/util/async.py
+++ b/spinoff/util/async.py
@@ -8,9 +8,6 @@ from twisted.internet.defer import inlineCallbacks, Deferred, CancelledError, De
from twisted.internet import reactor, task
-dbg = lambda *args, **kwargs: p... | Removed util.async.dbg in favor of util.logging.dbg | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.