diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/bidict/_common.py b/bidict/_common.py
index <HASH>..<HASH> 100644
--- a/bidict/_common.py
+++ b/bidict/_common.py
@@ -56,14 +56,14 @@ class BidirectionalMapping(Mapping):
Returns True if only its start is not None and False if only its stop
is not None.
"""
- start_missing... | improve TypeError messages with invalid slices + small refactor | py |
diff --git a/src/pyshark/capture/capture.py b/src/pyshark/capture/capture.py
index <HASH>..<HASH> 100644
--- a/src/pyshark/capture/capture.py
+++ b/src/pyshark/capture/capture.py
@@ -130,7 +130,7 @@ class Capture(object):
try:
self.apply_on_packets(keep_packet, timeout=timeout, packet_count=packet... | capture `TimeoutError` for both python<I> and below refer to <URL> now correctly waits for cancellation when using an instance of asyncio.Task. Previously, upon reaching timeout, it was cancelled and immediately returned. (Contributed by Elvis Pranskevichus in bpo-<I>.) This change make `TimeoutError` different. | py |
diff --git a/smuggler/views.py b/smuggler/views.py
index <HASH>..<HASH> 100644
--- a/smuggler/views.py
+++ b/smuggler/views.py
@@ -10,6 +10,7 @@ import os
from datetime import datetime
from django.core.exceptions import ObjectDoesNotExist
from django.core.management.base import CommandError
+from django.core.seriali... | Handle DeserializationError in view and show it as a error message | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -599,10 +599,10 @@ class Matcher(object):
if comps[0] not in self.opts['grains']:
log.error('Got unknown grain from master: {0}'.format(comps[0]))
return False
- ... | Fix issues in code from previous commit I might need to get some sleep in... | py |
diff --git a/tests/test_convert_img2pdf.py b/tests/test_convert_img2pdf.py
index <HASH>..<HASH> 100644
--- a/tests/test_convert_img2pdf.py
+++ b/tests/test_convert_img2pdf.py
@@ -16,13 +16,14 @@ class TestConvertImg2Pdf(unittest.TestCase):
self.temp = TemporaryDirectory()
def tearDown(self):
+ se... | FIX issues with assertions in test_convert_img2pdf method | py |
diff --git a/troposphere/ask.py b/troposphere/ask.py
index <HASH>..<HASH> 100644
--- a/troposphere/ask.py
+++ b/troposphere/ask.py
@@ -4,17 +4,15 @@
# See LICENSE file for full license.
from . import AWSObject, AWSProperty
-from .validators import json_checker
-class AuthenticationConfiguration(AWSProperty):
+c... | Update ASK to the latest AWS documentation (#<I>) | py |
diff --git a/djstripe/settings.py b/djstripe/settings.py
index <HASH>..<HASH> 100644
--- a/djstripe/settings.py
+++ b/djstripe/settings.py
@@ -8,16 +8,12 @@
"""
from __future__ import unicode_literals
-import sys
-
from django.apps import apps as django_apps
from django.conf import settings
from django.core.exce... | Remove unused import/variable in settings.py | py |
diff --git a/tests/test_integration.py b/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -1347,11 +1347,17 @@ def assert_reproducible_build(args):
with temporary_dir() as td:
pex1 = os.path.join(td, '1.pex')
pex2 = os.path.join(td, '2... | Refactor reproducible build tests to assert that the original pex command succeeded (#<I>) If the `run_pex_command` failed, this would not be surfaced until `zipfile.py` would try to read the zipfile and find that the file is not existing. Instead, we should eagerly assert that the command worked and output stdout ... | py |
diff --git a/mcpack/datapack.py b/mcpack/datapack.py
index <HASH>..<HASH> 100644
--- a/mcpack/datapack.py
+++ b/mcpack/datapack.py
@@ -127,6 +127,7 @@ class LootTable(JsonItem):
pools: list = field(default_factory=list)
type: str = 'generic'
+ functions: Optional[list] = None
@dataclass | Add functions to LootTable as Optional[list] | py |
diff --git a/pyrogram/client/methods/chats/get_chat_member.py b/pyrogram/client/methods/chats/get_chat_member.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/methods/chats/get_chat_member.py
+++ b/pyrogram/client/methods/chats/get_chat_member.py
@@ -55,7 +55,7 @@ class GetChatMember(BaseClient):
)
... | Fix get_chat_member not working when passing "me" in basic groups | py |
diff --git a/iopipe/iopipe.py b/iopipe/iopipe.py
index <HASH>..<HASH> 100644
--- a/iopipe/iopipe.py
+++ b/iopipe/iopipe.py
@@ -50,7 +50,7 @@ class IOpipe(object):
if v in dir(context):
self.report[aws_key][k] = getattr(context, v)
- if context and 'get_remaining_time_in_millis' in context:
+ if ... | Fixed bug in method check for lambda context | py |
diff --git a/werkzeug/debug/render.py b/werkzeug/debug/render.py
index <HASH>..<HASH> 100644
--- a/werkzeug/debug/render.py
+++ b/werkzeug/debug/render.py
@@ -11,6 +11,7 @@
import pprint
from os.path import dirname, join
+from werkzeug.utils import escape
from werkzeug.minitmpl import Template
from werkzeug.debug... | [svn] added escaping for var table --HG-- branch : trunk | py |
diff --git a/valigator/mailutils.py b/valigator/mailutils.py
index <HASH>..<HASH> 100644
--- a/valigator/mailutils.py
+++ b/valigator/mailutils.py
@@ -2,6 +2,11 @@ import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
+"""Mailing utils.
+Use this object to send emails.
+... | Added class documentation for mailutils. | py |
diff --git a/h2o-py/h2o/frame.py b/h2o-py/h2o/frame.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/frame.py
+++ b/h2o-py/h2o/frame.py
@@ -108,9 +108,6 @@ class H2OFrame(Keyed):
self._upload_python_object(python_obj, destination_frame, header, separator,
column_names... | Deleting frame creating temporarily during split locally. | py |
diff --git a/tornado/iostream.py b/tornado/iostream.py
index <HASH>..<HASH> 100644
--- a/tornado/iostream.py
+++ b/tornado/iostream.py
@@ -359,7 +359,7 @@ class IOStream(object):
raise IOError("Stream is closed")
def _add_io_state(self, state):
- if socket is None:
+ if self.socket is ... | Fix typo from commit 2b<I>fac Closes #<I>. | py |
diff --git a/integration_test/integration_tests.py b/integration_test/integration_tests.py
index <HASH>..<HASH> 100644
--- a/integration_test/integration_tests.py
+++ b/integration_test/integration_tests.py
@@ -200,7 +200,8 @@ def test_integration():
get_all_templates_for_type(client, EMAIL_TYPE)
get_all_temp... | Test received messages if INBOUND_SMS_QUERY_KEY set | py |
diff --git a/bbc_tracklist.py b/bbc_tracklist.py
index <HASH>..<HASH> 100755
--- a/bbc_tracklist.py
+++ b/bbc_tracklist.py
@@ -4,7 +4,7 @@
# bbc_radio_tracklisting_downloader: Download radio tracklistings from
# BBC's website and outputs to a text file.
-# Copyright 2013 Steven Maude
+# Copyright 2015 Steven Maude
... | It's now <I>, not <I>; bump date | py |
diff --git a/scanpy/preprocessing/_highly_variable_genes.py b/scanpy/preprocessing/_highly_variable_genes.py
index <HASH>..<HASH> 100644
--- a/scanpy/preprocessing/_highly_variable_genes.py
+++ b/scanpy/preprocessing/_highly_variable_genes.py
@@ -256,7 +256,7 @@ def _highly_variable_genes_single_batch(
) /... | fixes type bug, now tagging exactly n_top_genes (#<I>) Due to type conversion, often <I> genes gets tagged as 'highly_variable' even though n_top_genes is set to <I>. Now, this minor change guarantees that exactly (!) n_top_genes get tagged. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,8 +8,22 @@ from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
-
-import fc
+# To scrape version information
+import re
+
+def find_version(file_path):
+... | Updated setup to scrape version from __init__.py Fixes castillohair/fc#<I>. | py |
diff --git a/lib/webcomment_webinterface.py b/lib/webcomment_webinterface.py
index <HASH>..<HASH> 100644
--- a/lib/webcomment_webinterface.py
+++ b/lib/webcomment_webinterface.py
@@ -118,11 +118,15 @@ class WebInterfaceCommentsPages(WebInterfaceDirectory):
... | Added 'citations' tab. 'ln' parameter is preserved by tabs. | py |
diff --git a/_pydevd_bundle/pydevd_vars.py b/_pydevd_bundle/pydevd_vars.py
index <HASH>..<HASH> 100644
--- a/_pydevd_bundle/pydevd_vars.py
+++ b/_pydevd_bundle/pydevd_vars.py
@@ -571,9 +571,9 @@ def dataframe_to_xml(df, name, roffset, coffset, rows, cols, format):
# need to precompute column bounds here before sli... | PY-<I>: Min and max values for columns <I> and above were computed incorrectly sometimes causing exceptions during rendering. (cherry picked from commit <I>f) | py |
diff --git a/rawdisk/util/rawstruct.py b/rawdisk/util/rawstruct.py
index <HASH>..<HASH> 100644
--- a/rawdisk/util/rawstruct.py
+++ b/rawdisk/util/rawstruct.py
@@ -48,7 +48,10 @@ class RawStruct(object):
elif filename is not None:
with open(filename, 'rb') as f:
f.seek(offset)
- ... | Bugfix for rawstruct If only filename is supplied, read all file contents | py |
diff --git a/__pkginfo__.py b/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -59,8 +59,8 @@ install_requires = [
"pygments %s" % pygments_version,
"spark_parser >= 1.8.9, <1.9.0",
"tracer >= 0.3.2",
- "uncompyle6 >= 3.6.6",
- "xdis >= 4.5.0, < 4.6.0",
+ "... | Bump uncompyle6 version | py |
diff --git a/warrant/__init__.py b/warrant/__init__.py
index <HASH>..<HASH> 100644
--- a/warrant/__init__.py
+++ b/warrant/__init__.py
@@ -241,11 +241,12 @@ class Cognito(object):
"""
self.client = session.client('cognito-idp')
- def check_token(self):
+ def check_token(self, renew=True):
... | Add 'renew' flag to .check_token method This allows users of the warrant client to create different workflows on expired tokens. Function doc comments also updated. | py |
diff --git a/synapse/daemon.py b/synapse/daemon.py
index <HASH>..<HASH> 100644
--- a/synapse/daemon.py
+++ b/synapse/daemon.py
@@ -238,10 +238,10 @@ class Daemon(EventBus,DmonConf):
if item == None:
raise NoSuchObj(name)
- if opts.get('onfini'):
- self.onfini(it... | updated share() method to allow fini | py |
diff --git a/multiqc/modules/bcl2fastq/bcl2fastq.py b/multiqc/modules/bcl2fastq/bcl2fastq.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/bcl2fastq/bcl2fastq.py
+++ b/multiqc/modules/bcl2fastq/bcl2fastq.py
@@ -458,4 +458,9 @@ class MultiqcModule(BaseMultiqcModule):
bar_data[barcode] = OrderedD... | [MODIF] Sort undetermined index plot | py |
diff --git a/djcelery/management/commands/celeryd_multi.py b/djcelery/management/commands/celeryd_multi.py
index <HASH>..<HASH> 100644
--- a/djcelery/management/commands/celeryd_multi.py
+++ b/djcelery/management/commands/celeryd_multi.py
@@ -17,4 +17,4 @@ class Command(CeleryCommand):
def run_from_argv(self, ar... | Fixed typo in celeryd_multi command | py |
diff --git a/visidata/freeze.py b/visidata/freeze.py
index <HASH>..<HASH> 100644
--- a/visidata/freeze.py
+++ b/visidata/freeze.py
@@ -10,7 +10,16 @@ globalCommand("zg'", "gz'")
def StaticColumn(rows, col):
c = deepcopy(col)
- frozenData = {id(r):col.getValue(r) for r in rows}
+ frozenData = {}
+ @asyn... | [freeze-column] add Progress and catch Exceptions | py |
diff --git a/opf.py b/opf.py
index <HASH>..<HASH> 100644
--- a/opf.py
+++ b/opf.py
@@ -2,11 +2,17 @@ import os
import os.path
import utils
import dublincore
+from xml.dom.minidom import getDOMImplementation
+
+class contentOPF(object):
+ '''A class to represent the OPF document.'''
+
+ def __init__(self):
... | Beginnings of new contentOPF class | py |
diff --git a/xport.py b/xport.py
index <HASH>..<HASH> 100644
--- a/xport.py
+++ b/xport.py
@@ -265,19 +265,28 @@ def _read_observations(fp, variables):
padding = b' '
sentinel = padding * blocksize
+ # at the end of the file, the last block should be all padding
+ # in Python 3, looping over a bytes o... | Fix check that file end is correctly padded If the number of records times the blocksize is a multiple of <I>, the file can end without any padding. Also, the check that all bytes are padding in the last chunk read deserves a comment explaining the awkwardness to avoid the bytes/int confusion. | py |
diff --git a/src/sos/jupyter/kernel.py b/src/sos/jupyter/kernel.py
index <HASH>..<HASH> 100644
--- a/src/sos/jupyter/kernel.py
+++ b/src/sos/jupyter/kernel.py
@@ -1672,7 +1672,7 @@ Available subkernels:\n{}'''.format(
from sos.utils import pexpect_run
try:
with self.redirect_sos_io():
- ... | Fix window width for unit test for which self.cell_idx is None | py |
diff --git a/eternalegypt/eternalegypt.py b/eternalegypt/eternalegypt.py
index <HASH>..<HASH> 100644
--- a/eternalegypt/eternalegypt.py
+++ b/eternalegypt/eternalegypt.py
@@ -228,7 +228,8 @@ class LB2120:
result.serial_number = data['general']['FSN']
result.usage = data['wwan']['dataUsage']['generic']... | Test for existence of backhaul field (#<I>) This is apparently missing with Netgear MR<I> (Nighthawk M1). | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -393,7 +393,9 @@ class Cluster(object):
contact_points = ['127.0.0.1']
"""
- The list of contact points to try connecting for cluster discovery.
+ The list of c... | Minor docs improvement about a cluster contact point | py |
diff --git a/pyemma/_base/parallel.py b/pyemma/_base/parallel.py
index <HASH>..<HASH> 100644
--- a/pyemma/_base/parallel.py
+++ b/pyemma/_base/parallel.py
@@ -68,22 +68,20 @@ class NJobsMixIn(object):
@n_jobs.setter
def n_jobs(self, val):
""" set number of jobs/threads to use via assignment of data.
... | [njobs_mixin] fix preference of env over n_jobs=None. | py |
diff --git a/pyt/cfg.py b/pyt/cfg.py
index <HASH>..<HASH> 100644
--- a/pyt/cfg.py
+++ b/pyt/cfg.py
@@ -58,8 +58,10 @@ class Node(object):
class CFG(ast.NodeVisitor):
- nodes = list()
+ def __init__(self):
+ self.nodes = list()
+
def create(self, ast):
'''
Creates a... | nodes was a class variable DOH! | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ setup_requires = [
]
install_requires = [
- 'inspire-schemas~=59.0,>=59.0.0',
+ 'inspire-schemas~=60.0,>=60.0.1',
'inspire-utils~=3.0,>=3.0.0',
'pypeg2~=2.0,>=2.15.2',
'python-dateutil~=... | setup: bump inspire-schemas to <I>.* | py |
diff --git a/djangocms_page_meta/admin.py b/djangocms_page_meta/admin.py
index <HASH>..<HASH> 100644
--- a/djangocms_page_meta/admin.py
+++ b/djangocms_page_meta/admin.py
@@ -3,7 +3,6 @@ from __future__ import absolute_import, print_function, unicode_literals
from cms.admin.pageadmin import PageAdmin
from cms.exten... | Missed an old unregister command | py |
diff --git a/lightsteem/helpers/rc.py b/lightsteem/helpers/rc.py
index <HASH>..<HASH> 100644
--- a/lightsteem/helpers/rc.py
+++ b/lightsteem/helpers/rc.py
@@ -22,14 +22,18 @@ class ResourceCredit:
signed_tx_hex = self.client.get_transaction_hex(tx)
tx_size = len(bytes.fromhex(signed_tx_hex))
... | Use batch calls to optimize rc cost calculation | py |
diff --git a/server/system.py b/server/system.py
index <HASH>..<HASH> 100644
--- a/server/system.py
+++ b/server/system.py
@@ -49,6 +49,10 @@ def parseBlastResult(data, session, lineLenght = 60):
row["identity"] = "{0:.2f}".format(float(row["identity"]) / blastResult["BlastOutput2"][0]["report"]["results"]["search"]... | Adjusting coverage/identity scores for blastx(multiplying by 3) | py |
diff --git a/vcr/matchers.py b/vcr/matchers.py
index <HASH>..<HASH> 100644
--- a/vcr/matchers.py
+++ b/vcr/matchers.py
@@ -38,16 +38,16 @@ def headers(r1, r2):
return r1.headers == r2.headers
-def _log_matches(matches):
+def _log_matches(r1, r2, matches):
differences = [m for m in matches if not m[0]]
... | better logging when matches aren't working. | py |
diff --git a/vlcp/utils/dataobject.py b/vlcp/utils/dataobject.py
index <HASH>..<HASH> 100644
--- a/vlcp/utils/dataobject.py
+++ b/vlcp/utils/dataobject.py
@@ -339,9 +339,11 @@ def dump(obj, attributes = True, _refset = None):
clsname = getattr(cls, '__module__', '<unknown>') + '.' + getattr(cls, '__name__', '<... | bug fix: circle detect is not working correctly | py |
diff --git a/bumpy.py b/bumpy.py
index <HASH>..<HASH> 100644
--- a/bumpy.py
+++ b/bumpy.py
@@ -8,6 +8,7 @@ CONFIG = {
'cli': False,
'abbrev': True,
+ 'suppress': (),
}
LOCALE = {
@@ -80,7 +81,7 @@ class _Task:
return _highlight('[' + self.name + ']', color)
def __print(self, id, *args):
- if ('all' n... | Add a config option to suppress messages for all commands | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -30,7 +30,7 @@ sys.path.insert(0, os.path.abspath('..'))
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-exten... | Enable Sphinx viewcode extension (links to source code) | py |
diff --git a/ics/event.py b/ics/event.py
index <HASH>..<HASH> 100644
--- a/ics/event.py
+++ b/ics/event.py
@@ -147,7 +147,6 @@ class Event(Component):
| Will return a timedelta object.
| May be set to anything that timedelta() understands.
| May be set with a dict ({"days":2, "hours":6}).
... | [fix] Moar efficient code for duration setter | py |
diff --git a/squad/core/migrations/0116_make_group_membership_unique.py b/squad/core/migrations/0116_make_group_membership_unique.py
index <HASH>..<HASH> 100644
--- a/squad/core/migrations/0116_make_group_membership_unique.py
+++ b/squad/core/migrations/0116_make_group_membership_unique.py
@@ -6,6 +6,24 @@ from django.... | core: remove duplicate membersships before making them unique The migration will keep the membership with higher access. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -38,11 +38,11 @@ setup(
author='Sepand Haghighi',
author_email='sepand@qpage.ir',
url='https://github.com/sepandhaghighi/art',
- download_url='https://github.com/sepandhaghighi/art/tarball/v1.4',
keyword... | fix : setup file url_download removed | py |
diff --git a/ReText/window.py b/ReText/window.py
index <HASH>..<HASH> 100644
--- a/ReText/window.py
+++ b/ReText/window.py
@@ -87,7 +87,7 @@ class ReTextWindow(QMainWindow):
self.treeView.doubleClicked.connect(self.treeItemSelected)
self.tabWidget = QTabWidget(self.splitter)
self.initTabWidget()
- self.splitt... | Fix DeprecationWarning about implicit conversion to integers | py |
diff --git a/cobra/core/Reaction.py b/cobra/core/Reaction.py
index <HASH>..<HASH> 100644
--- a/cobra/core/Reaction.py
+++ b/cobra/core/Reaction.py
@@ -581,6 +581,9 @@ class Reaction(Object):
if metabolite.charge is not None:
reaction_element_dict["charge"] += \
coeffic... | Fixes #<I>, raise a ValueError from check_mass_balance() when Metabolite.elements returns None because there is a problem parsing the formula | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -2342,7 +2342,7 @@ class RemoteHost(object):
except IOError, e:
if e.errno == errno.ENOENT:
sftp.put(f, dest, callback=progress)
- print "\n{0:.3f} seco... | don't print ftp times any more during build_cloud | py |
diff --git a/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py b/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py
index <HASH>..<HASH> 100644
--- a/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py
+++ b/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisc... | Nexus ml2 plugin causing neutron crash at _load_nexus_cfg_driver Last minute change did not make it in which eliminated extra argument getting passed in. Change-Id: I<I>c9c<I>b4dcf<I>a<I>e0c1c4add5fd2b9 Closes-bug: #<I> | py |
diff --git a/indra/tests/test_preassembler.py b/indra/tests/test_preassembler.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_preassembler.py
+++ b/indra/tests/test_preassembler.py
@@ -687,9 +687,9 @@ def test_influence_duplicate():
pa = Preassembler(hierarchies, [stmt1, stmt2, stmt3])
unique_stmts = pa... | New matches key changes order of combined stmts | py |
diff --git a/habu/lib/http.py b/habu/lib/http.py
index <HASH>..<HASH> 100644
--- a/habu/lib/http.py
+++ b/habu/lib/http.py
@@ -2,7 +2,7 @@
import requests
import urllib3
-urllib3.disable_warnings()
+#urllib3.disable_warnings()
def get_headers(server): | commented disable warnings because gives an error | py |
diff --git a/grip/readers.py b/grip/readers.py
index <HASH>..<HASH> 100644
--- a/grip/readers.py
+++ b/grip/readers.py
@@ -222,9 +222,7 @@ class DirectoryReader(ReadmeReader):
Gets whether the specified subpath is a supported binary file.
"""
mimetype = self.mimetype_for(subpath)
- if ... | Cleanup and assume text for missing MIME type | py |
diff --git a/stone/data_type.py b/stone/data_type.py
index <HASH>..<HASH> 100644
--- a/stone/data_type.py
+++ b/stone/data_type.py
@@ -785,6 +785,9 @@ class UserDefined(Composite):
d[key] = inner_d['.tag']
else:
make_compact(inner_d)
+ ... | include lists in make_compact fixes issue where a list of parameters doesn’t exclude unnecessary lone .tag keys when generating examples | py |
diff --git a/gwpy/io/cache.py b/gwpy/io/cache.py
index <HASH>..<HASH> 100644
--- a/gwpy/io/cache.py
+++ b/gwpy/io/cache.py
@@ -70,7 +70,7 @@ except NameError: # python3.x
# -- cache I/O ----------------------------------------------------------------
def read_cache(cachefile, coltype=LIGOTimeGPS):
- """Read a L... | gwpy.io: fixed typo in docstring [skip ci] [skip appveyor] | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -876,9 +876,6 @@ class Minion(MinionBase):
errors = functions['_errors']
functions.pop('_errors')
- functions.clear()
- returners.clear()
-
# we're don... | We aren't doing singleton module loaders, lets not clear what we just made | py |
diff --git a/allegedb/allegedb/cache.py b/allegedb/allegedb/cache.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/cache.py
+++ b/allegedb/allegedb/cache.py
@@ -174,7 +174,7 @@ class Cache(object):
Deeper layers of this cache are keyed by branch, turn, and tick.
"""
- self.keycache = Pi... | Switch to SettingsturnDict for the keycache It is no longer necessarily filled forward, and therefore should not prevent skipping about in time. | py |
diff --git a/generator/python/python.babelg.py b/generator/python/python.babelg.py
index <HASH>..<HASH> 100644
--- a/generator/python/python.babelg.py
+++ b/generator/python/python.babelg.py
@@ -324,7 +324,7 @@ class PythonGenerator(CodeGeneratorMonolingual):
class_name = self._class_name_for_data_type... | Bug fix: Generated Python classes for structs weren't calling super constructor with all fields. Summary: Issue is exposed with three classes that linearly inherit: A -> B -> C C will call B's constructor with only fields pertinent to B, when it should be calling B's constructor with fields pertinent to A and B. Rev... | py |
diff --git a/giotto/contrib/static/programs.py b/giotto/contrib/static/programs.py
index <HASH>..<HASH> 100644
--- a/giotto/contrib/static/programs.py
+++ b/giotto/contrib/static/programs.py
@@ -1,6 +1,7 @@
import os
import mimetypes
+from giotto import get_config
from giotto.programs import GiottoProgram
from gi... | changed static serve to implicitly use project_path | py |
diff --git a/panels/_version.py b/panels/_version.py
index <HASH>..<HASH> 100644
--- a/panels/_version.py
+++ b/panels/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.0.29"
+__version__ = "0.0.30" | Update version number to <I> | py |
diff --git a/app_helper/__init__.py b/app_helper/__init__.py
index <HASH>..<HASH> 100644
--- a/app_helper/__init__.py
+++ b/app_helper/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
-__version__ = "2.1.1"
+__version__ = "2.1.2.dev1"
__au... | Bump develop version [ci skip] | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -56,6 +56,7 @@ extensions = [
'sphinx.ext.autodoc',
]
+autodoc_member_order = 'bysource'
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] | Order in autodoc set to 'bysource' This order is more natural than 'alphabetical' | py |
diff --git a/sharepoint/lists/__init__.py b/sharepoint/lists/__init__.py
index <HASH>..<HASH> 100644
--- a/sharepoint/lists/__init__.py
+++ b/sharepoint/lists/__init__.py
@@ -95,7 +95,7 @@ class SharePointList(object):
@property
def row_class(self):
if not hasattr(self, '_row_class'):
- at... | Added missing opener attribute to row class | py |
diff --git a/jf_agent/gh_download.py b/jf_agent/gh_download.py
index <HASH>..<HASH> 100644
--- a/jf_agent/gh_download.py
+++ b/jf_agent/gh_download.py
@@ -37,9 +37,6 @@ def get_all_users(client, include_orgs):
users = [_normalize_user(user) for org in include_orgs for user in client.get_all_users(org)]
print(... | don't throw if no members of an org; we'll create people on demand (#<I>) | py |
diff --git a/Tank/stepper/load_plan.py b/Tank/stepper/load_plan.py
index <HASH>..<HASH> 100644
--- a/Tank/stepper/load_plan.py
+++ b/Tank/stepper/load_plan.py
@@ -39,7 +39,7 @@ class Const(object):
return self.duration / 1000 * self.rps
def get_rps_list(self):
- return [(self.rps, self.duration /... | publish rounded rps in const lp | py |
diff --git a/ariba/clusters.py b/ariba/clusters.py
index <HASH>..<HASH> 100644
--- a/ariba/clusters.py
+++ b/ariba/clusters.py
@@ -1,3 +1,4 @@
+import signal
import os
import copy
import tempfile
@@ -124,6 +125,21 @@ class Clusters:
if self.verbose:
print('Temporary directory:', self.tmp_dir)
... | Delete temp directory if ctrl-c used | py |
diff --git a/unyt/equivalencies.py b/unyt/equivalencies.py
index <HASH>..<HASH> 100644
--- a/unyt/equivalencies.py
+++ b/unyt/equivalencies.py
@@ -38,9 +38,6 @@ class _RegisteredEquivalence(type):
type.__init__(cls, name, b, d)
if hasattr(cls, "type_name"):
equivalence_registry[cls.type_n... | delete alternate_names handling from equivalency metaclass, this was removed | py |
diff --git a/diff_cover/git_path.py b/diff_cover/git_path.py
index <HASH>..<HASH> 100644
--- a/diff_cover/git_path.py
+++ b/diff_cover/git_path.py
@@ -28,9 +28,12 @@ class GitPathTool(object):
# and src_path is `diff_cover/violations_reporter.py`
# search for `violations_reporter.py`
root_rel... | While the previous way worked. This is more correct. relpath needs to have matching types and this function assumes it gets a string/unicode. However, relpath will sometimes return a binary type. This happens because sometimes it returns a hardcoded value. See posixpath.py in python<I>. These hardcoded values are not u... | py |
diff --git a/registration/backends/default/views.py b/registration/backends/default/views.py
index <HASH>..<HASH> 100644
--- a/registration/backends/default/views.py
+++ b/registration/backends/default/views.py
@@ -6,5 +6,5 @@ warnings.warn(
DeprecationWarning
)
-from registration.backends.model_activation impo... | Fix import path to new views location in deprecated 'default' backend views file. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,7 @@ setup(
maintainer_email='hello@pixelapse.com',
packages=find_packages(),
package_data={'': package_libs},
- python_requires='>=3'
+ python_requires='>=3',
install_requires=['pxprocess', 'pyunicode'... | Missing comma on line <I> | py |
diff --git a/LiSE/character.py b/LiSE/character.py
index <HASH>..<HASH> 100644
--- a/LiSE/character.py
+++ b/LiSE/character.py
@@ -333,11 +333,14 @@ class CharacterPlaceMapping(MutableMapping, RuleFollower):
except KeyError:
return False
for (branch, tick) in self.engine._acti... | Place mapping throws KeyError when a node exists but is a Thing | py |
diff --git a/bsdploy/fabrics.py b/bsdploy/fabrics.py
index <HASH>..<HASH> 100644
--- a/bsdploy/fabrics.py
+++ b/bsdploy/fabrics.py
@@ -270,10 +270,10 @@ def bootstrap_mfsbsd(**kwargs):
if not yesno("\nContinuing will destroy the existing data on the following devices:\n %s\n\nContinue?" % ' '.join(devices)):
... | allow to override the defaults with values from ploy.conf | py |
diff --git a/packages/sdk/snet/sdk/version.py b/packages/sdk/snet/sdk/version.py
index <HASH>..<HASH> 100644
--- a/packages/sdk/snet/sdk/version.py
+++ b/packages/sdk/snet/sdk/version.py
@@ -1 +1 @@
-__version__ = "0.2.2"
+__version__ = "0.2.3" | Updating the SDK version -> <I> | py |
diff --git a/netmiko/cisco/cisco_xr.py b/netmiko/cisco/cisco_xr.py
index <HASH>..<HASH> 100644
--- a/netmiko/cisco/cisco_xr.py
+++ b/netmiko/cisco/cisco_xr.py
@@ -136,6 +136,9 @@ class CiscoXrBase(CiscoBaseConnection):
output += self.read_until_pattern(
pattern=re.escape(exit_confi... | Fix XR exit_config_mode issue (#<I>) | py |
diff --git a/mtglib/gatherer_request.py b/mtglib/gatherer_request.py
index <HASH>..<HASH> 100644
--- a/mtglib/gatherer_request.py
+++ b/mtglib/gatherer_request.py
@@ -274,4 +274,4 @@ class SearchRequest(object):
def url(self):
return (base_url +
'&'.join([fl.url_fragment() for fl in self.... | add '&action=advanced' needed for listing all cards from a set | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -446,12 +446,14 @@ class RequestHandler(object):
if head_part: html_heads.append(_utf8(head_part))
body_part = module.html_body()
if body_part: html_bodies.append(... | Support https for UIModule javascript_files and css_files. Closes #<I>. | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -520,7 +520,8 @@ def check_sandbox_for_errors(sandbox_ignore_errors=False):
# don't detect these class loader info messags as errors
#[Loaded java.lang.Error from /usr/lib/jvm/java... | Log line containg reference to the class CalcSquareErrorsTasks causes false test fail. | py |
diff --git a/will/backends/pubsub/zeromq_pubsub.py b/will/backends/pubsub/zeromq_pubsub.py
index <HASH>..<HASH> 100644
--- a/will/backends/pubsub/zeromq_pubsub.py
+++ b/will/backends/pubsub/zeromq_pubsub.py
@@ -34,7 +34,7 @@ Examples:
def __init__(self, settings, *args, **kwargs):
self.verify_settings(q... | Explicitly notes that ZeroMQ won't be in <I>. | py |
diff --git a/pymc/sampling.py b/pymc/sampling.py
index <HASH>..<HASH> 100644
--- a/pymc/sampling.py
+++ b/pymc/sampling.py
@@ -2125,18 +2125,18 @@ def draw(
Parameters
----------
- vars
+ vars : Variable or iterable of Variable
A variable or a list of variables for which to draw samples.
- ... | Doc change the default value of pymc.draw from <I> to 1. (#<I>) * changed the default value of drwas from <I> to 1 * fixed samplers_draw docsting * fixed samplers_draw docsting | py |
diff --git a/py/selenium/webdriver/firefox/webdriver.py b/py/selenium/webdriver/firefox/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/firefox/webdriver.py
+++ b/py/selenium/webdriver/firefox/webdriver.py
@@ -92,6 +92,7 @@ class WebDriver(RemoteWebDriver):
if "marionette" in self.capabili... | Kill binary so profile clean up is no longer blocked by file locks | py |
diff --git a/tests/test_gnupg.py b/tests/test_gnupg.py
index <HASH>..<HASH> 100644
--- a/tests/test_gnupg.py
+++ b/tests/test_gnupg.py
@@ -662,10 +662,10 @@ class GPGTestCase(unittest.TestCase):
"""Test encryption of a message string"""
key = self.generate_key("Craig Gentry", "xorr.ox",
... | Awkwardly, fingerprints need to always be strings. Change unittests to do so. | py |
diff --git a/commitizen/commands/version.py b/commitizen/commands/version.py
index <HASH>..<HASH> 100644
--- a/commitizen/commands/version.py
+++ b/commitizen/commands/version.py
@@ -16,14 +16,14 @@ class Version:
if version:
out.write(f"{version}")
else:
- out.... | style: align with flake8 newest version | py |
diff --git a/tests/gui/test_semantic_data.py b/tests/gui/test_semantic_data.py
index <HASH>..<HASH> 100644
--- a/tests/gui/test_semantic_data.py
+++ b/tests/gui/test_semantic_data.py
@@ -37,7 +37,7 @@ def change_semantic_data_values():
state_machine_model = gui_singleton.state_machine_manager_model.state_machines[... | fix(semantic_data): Adapt to renamed method | py |
diff --git a/mythril/ether/soliditycontract.py b/mythril/ether/soliditycontract.py
index <HASH>..<HASH> 100644
--- a/mythril/ether/soliditycontract.py
+++ b/mythril/ether/soliditycontract.py
@@ -43,6 +43,7 @@ class SolidityContract(ETHContract):
self.name = name
self.code = con... | Bugfix: Assign srcmap when contract name is specified explicitly | py |
diff --git a/example.py b/example.py
index <HASH>..<HASH> 100644
--- a/example.py
+++ b/example.py
@@ -1,13 +1,10 @@
-import json
import os
-import asyncio
-from urllib.request import urlopen
import aiohttp
from sirbot import SirBot
-token = os.environ.get('SIRBOT_TOKEN')
+token = os.environ['SIRBOT_TOKEN']
... | Clean up some updates to aiohttp from the previous urllib, also removes unused imports | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,5 +12,6 @@ if __name__ == '__main__':
author='Rogerio Hilbert Lima',
author_email='rogerhil@gmail.com',
url='https://github.com/rogerhil/thegamesdb',
+ download_url='https://github.com/rog... | Preparing to register at PyPI | py |
diff --git a/mockito/mockito.py b/mockito/mockito.py
index <HASH>..<HASH> 100644
--- a/mockito/mockito.py
+++ b/mockito/mockito.py
@@ -332,7 +332,14 @@ def unstub(*objs):
def forget_invocations(*objs):
- """Forget all invocations of given objs."""
+ """Forget all invocations of given objs.
+
+ If you alre... | Add basic documentation to `forget_invocations` | py |
diff --git a/gsh/control_commands.py b/gsh/control_commands.py
index <HASH>..<HASH> 100644
--- a/gsh/control_commands.py
+++ b/gsh/control_commands.py
@@ -66,7 +66,7 @@ def do_help(command):
max_name_len = max(map(len, names))
for i in xrange(len(names)):
name = names[i]
- txt ... | Left justify control command names for better readability | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
-VERSION = '2.0.3'
+VERSION = '2.0.4'
long_description = 'This package contains the tools you need to quickly ' \
'integ... | [SDK-<I>]: Updated version | py |
diff --git a/pypsa/descriptors.py b/pypsa/descriptors.py
index <HASH>..<HASH> 100644
--- a/pypsa/descriptors.py
+++ b/pypsa/descriptors.py
@@ -284,6 +284,17 @@ def allocate_series_dataframes(network, series):
pnl[attr] = pnl[attr].reindex(columns=df.index,
fill_va... | descriptors: Add function to clear pypsa output series data Meant to be run before solving lopf to temporarily free up data for the solver. | py |
diff --git a/bugzoo/version.py b/bugzoo/version.py
index <HASH>..<HASH> 100644
--- a/bugzoo/version.py
+++ b/bugzoo/version.py
@@ -1 +1 @@
-__version__ = '2.0.8'
+__version__ = '2.0.9' | minor version bump to <I> | py |
diff --git a/rflint/__main__.py b/rflint/__main__.py
index <HASH>..<HASH> 100644
--- a/rflint/__main__.py
+++ b/rflint/__main__.py
@@ -8,7 +8,7 @@ def main(args=None):
return result
except Exception, e:
- print str(e)
+ sys.stderr.write(str(e) + "\n")
return 1
if __name__ == "_... | write caught exceptions to stderr instead of stdout | py |
diff --git a/src/scout_apm/core/config/config.py b/src/scout_apm/core/config/config.py
index <HASH>..<HASH> 100644
--- a/src/scout_apm/core/config/config.py
+++ b/src/scout_apm/core/config/config.py
@@ -23,7 +23,13 @@ class ScoutConfig():
ScoutConfigNull()]
def value(self, key):
- return self... | Add a BooleanConversion to configs, applied to 'monitor' | py |
diff --git a/dsub/providers/local.py b/dsub/providers/local.py
index <HASH>..<HASH> 100644
--- a/dsub/providers/local.py
+++ b/dsub/providers/local.py
@@ -464,7 +464,7 @@ class LocalJobProvider(base.JobProvider):
with open(os.path.join(task_dir, 'end-time.txt'), 'wt') as f:
f.write(today)
msg = '... | local: ensure runner-log.txt is written as text. PiperOrigin-RevId: <I> | py |
diff --git a/bibliopixel/animation/tests.py b/bibliopixel/animation/tests.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/animation/tests.py
+++ b/bibliopixel/animation/tests.py
@@ -62,9 +62,12 @@ class MatrixCalibrationTest(BaseMatrixAnim):
class PixelTester(Animation):
""""""
- BRIGHTNESS = 0.5
PAUSE... | Make `brightness` a field of PixelTester | py |
diff --git a/motor/__init__.py b/motor/__init__.py
index <HASH>..<HASH> 100644
--- a/motor/__init__.py
+++ b/motor/__init__.py
@@ -1419,9 +1419,10 @@ class MotorCursor(MotorBase):
self.close()
return False
- if not self.alive:
+ if not self.alive and not self.closed:
... | MotorCursor.tail must check if its callback called MotorCursor.close() on it | py |
diff --git a/testbot.py b/testbot.py
index <HASH>..<HASH> 100755
--- a/testbot.py
+++ b/testbot.py
@@ -84,7 +84,7 @@ class TestBot(SingleServerIRCBot):
voiced.sort()
c.notice(nick, "Voiced: " + string.join(voiced, ", "))
elif cmd == "dcc":
- dcc = self.dcc_listen(nm... | Removed address argument in dcc_listen call. | py |
diff --git a/python_utils/data_utils.py b/python_utils/data_utils.py
index <HASH>..<HASH> 100644
--- a/python_utils/data_utils.py
+++ b/python_utils/data_utils.py
@@ -176,13 +176,7 @@ def convert_columns_to_multinomial(T, M_c, multinomial_indices):
def all_continuous_from_file(filename, max_rows=None, gen_seed=0, has_... | use at_most_N_rows instead of re-implementing | py |
diff --git a/shap/common.py b/shap/common.py
index <HASH>..<HASH> 100644
--- a/shap/common.py
+++ b/shap/common.py
@@ -267,7 +267,7 @@ def convert_name(ind, shap_values, feature_names):
elif ind == "sum()":
return "sum()"
else:
- print("Could not find feature n... | raise an exception when name to index conversion fails | py |
diff --git a/honcho/command.py b/honcho/command.py
index <HASH>..<HASH> 100644
--- a/honcho/command.py
+++ b/honcho/command.py
@@ -129,8 +129,7 @@ class Honcho(compat.with_metaclass(Commander, object)):
try:
options.func(self, options)
except CommandError as e:
- if e.message:
... | Python 3: exceptions don't have message attributes | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.