diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/substrate.py b/substrate.py
index <HASH>..<HASH> 100644
--- a/substrate.py
+++ b/substrate.py
@@ -283,7 +283,7 @@ def convert_to_azure_ids(client, instance_ids):
See: https://bugs.launchpad.net/juju-core/+bug/1586089
- :param client: An EnvJujuClient instance.
+ :param client: A ModelClient ... | Switch substrate to ModelClient name. | py |
diff --git a/m9dicts/tests/api.py b/m9dicts/tests/api.py
index <HASH>..<HASH> 100644
--- a/m9dicts/tests/api.py
+++ b/m9dicts/tests/api.py
@@ -90,7 +90,7 @@ class Test_20_make(unittest.TestCase):
self.assertTrue(md0[k] == _CNF_0[k],
"%r vs. %r" % (md0[k], _CNF_0[k]))
- def... | change: just rename a test method | py |
diff --git a/django_extensions/db/fields/json.py b/django_extensions/db/fields/json.py
index <HASH>..<HASH> 100644
--- a/django_extensions/db/fields/json.py
+++ b/django_extensions/db/fields/json.py
@@ -12,8 +12,6 @@ more information.
"""
from __future__ import absolute_import
-from decimal import Decimal
-
import... | Don't parse floats as decimals, fixing a bug that causes them to be returned as strings after multiple saves. | py |
diff --git a/nodeconductor/iaas/backend/openstack.py b/nodeconductor/iaas/backend/openstack.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/iaas/backend/openstack.py
+++ b/nodeconductor/iaas/backend/openstack.py
@@ -1672,7 +1672,7 @@ class OpenStackBackend(object):
system_volume = next(v for v in attach... | Lower log level used for instance volume inferring | py |
diff --git a/dingos/import_handling.py b/dingos/import_handling.py
index <HASH>..<HASH> 100644
--- a/dingos/import_handling.py
+++ b/dingos/import_handling.py
@@ -234,9 +234,9 @@ class DingoImportHandling(object):
#if not uid:
# uid = uuid.uuid1()
- #logger.info("Creating %s:%s... | Logger INFO on object creation had been commented out by mistake. | py |
diff --git a/chainlet/driver.py b/chainlet/driver.py
index <HASH>..<HASH> 100644
--- a/chainlet/driver.py
+++ b/chainlet/driver.py
@@ -91,7 +91,7 @@ class ThreadedChainDriver(ChainDriver):
def run(self):
with self._run_lock:
runner_threads = [
- threading.Thread(target=self._pa... | fixed bug that prevented threaded driver from starting | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup, Extension
from os.path import dirname, abspath
DIR = dirname(abspath(__file__))
-VERSION = '1.0.2'
+VERSION = '1.0.3'
yahdlc = Extension(
'yahdlc', | update version in 'setup.py' file | py |
diff --git a/vgit/git.py b/vgit/git.py
index <HASH>..<HASH> 100644
--- a/vgit/git.py
+++ b/vgit/git.py
@@ -127,6 +127,10 @@ class GitSheet(Sheet):
super().__init__(*args, **kwargs)
self.extra_args = []
+ @Sheet.name.setter
+ def name(self, name):
+ self._name = name.strip()
+
@asyn... | [vgit] keep spaces in GitSheet.name for commands | py |
diff --git a/pghoard/basebackup.py b/pghoard/basebackup.py
index <HASH>..<HASH> 100644
--- a/pghoard/basebackup.py
+++ b/pghoard/basebackup.py
@@ -100,8 +100,9 @@ class PGBaseBackup(Thread):
@staticmethod
def get_paths_for_backup(basebackup_path):
+ i = 0
while True:
- tsdir = dat... | Partially restore old index logic for basebackup directories Finding unique folder did not work correctly because the method only attempted new folder name when current minute changed. | py |
diff --git a/osbs/api.py b/osbs/api.py
index <HASH>..<HASH> 100644
--- a/osbs/api.py
+++ b/osbs/api.py
@@ -15,7 +15,6 @@ import stat
import sys
import warnings
import datetime
-import requests
from functools import wraps
from osbs.build.build_request import BuildRequest
@@ -304,14 +303,14 @@ class OSBS(object):
... | Remove unnecessary requests dependency This was added to lookup <I> status_code symbol. No need to depend on requests just for this. | py |
diff --git a/checkers/variables.py b/checkers/variables.py
index <HASH>..<HASH> 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -831,7 +831,6 @@ class VariablesChecker3k(VariablesChecker):
# do not check for not used locals here
self._to_consume.pop()
- @check_messages('undefine... | Remove check_messages, so that leave_module can be called if 'undefined-variable' is disabled. --HG-- branch : metaclass_undefined | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,6 @@ setup(
license='MIT',
packages=['serfclient'],
install_requires=['msgpack-python >= 0.4.0'],
- tests_require=['pytest >= 2.5.2'],
+ tests_require=['pytest >= 2.5.2', 'pytest-cov >= 1.6'],
... | Add pytest-cov as a test dependency As part of CI we want to check our code coverage as we work on this python module. | py |
diff --git a/salt/states/archive.py b/salt/states/archive.py
index <HASH>..<HASH> 100644
--- a/salt/states/archive.py
+++ b/salt/states/archive.py
@@ -69,6 +69,7 @@ def extracted(name,
source,
archive_format,
archive_user=None,
+ password=None,
us... | add zip passwords to archive.extracted | py |
diff --git a/nanoget/nanoget.py b/nanoget/nanoget.py
index <HASH>..<HASH> 100644
--- a/nanoget/nanoget.py
+++ b/nanoget/nanoget.py
@@ -270,12 +270,16 @@ def get_pID(read):
based on the NM tag if present,
if not calculate from MD tag and CIGAR string
+
+ read.query_alignment_length can be zero in the case... | added except ZeroDivisionError on get_pID | py |
diff --git a/release/e2e.py b/release/e2e.py
index <HASH>..<HASH> 100644
--- a/release/e2e.py
+++ b/release/e2e.py
@@ -1265,6 +1265,8 @@ def run_test_config(
min_workers = 0
for node_type in compute_tpl["worker_node_types"]:
min_workers += node_type["min_workers"]
... | [release] use job timeout with ray/anyscale connect (#<I>) | py |
diff --git a/splitwise/__init__.py b/splitwise/__init__.py
index <HASH>..<HASH> 100644
--- a/splitwise/__init__.py
+++ b/splitwise/__init__.py
@@ -41,7 +41,7 @@ class Splitwise(object):
debug = False
- def __init__(self,consumer_key,consumer_secret,access_token=None,debug=False):
+ def __init__(self,cons... | Debug should be set at class level | py |
diff --git a/universal/universal.py b/universal/universal.py
index <HASH>..<HASH> 100755
--- a/universal/universal.py
+++ b/universal/universal.py
@@ -225,7 +225,7 @@ def check_exec_installed(exec_list):
all_installed = True
for exe in exec_list:
- if shutil.which(exe) == None:
+ if shutil.whi... | Comparison with None should always be made using is/is not and not equality | py |
diff --git a/src/nlpia/book_parser.py b/src/nlpia/book_parser.py
index <HASH>..<HASH> 100644
--- a/src/nlpia/book_parser.py
+++ b/src/nlpia/book_parser.py
@@ -374,7 +374,7 @@ def correct_hyperlinks(book_dir=BOOK_PATH, dest=None, include_tags=['natural'],
>>> len(correct_hyperlinks(book_dir=BOOK_PATH, dest='clean... | use nlpia.futil.rm_rf() in all book_parser.py doctests that need to clean up cleaned_*.adoc files | py |
diff --git a/mackup/utils.py b/mackup/utils.py
index <HASH>..<HASH> 100644
--- a/mackup/utils.py
+++ b/mackup/utils.py
@@ -288,7 +288,7 @@ def get_box_folder_location():
with open(box_sync_path, 'r') as sync_path:
box_home = sync_path.read()
except IOError:
- error('Unable to find your... | Moved get_box_for_location to double quotes | py |
diff --git a/tests/sos_tests.py b/tests/sos_tests.py
index <HASH>..<HASH> 100644
--- a/tests/sos_tests.py
+++ b/tests/sos_tests.py
@@ -315,7 +315,8 @@ class BaseSoSReportTest(BaseSoSTest):
"""
if os.path.exists(fname):
self.assertFileExists(self.get_name_in_archive(fname))
- assert... | [tests] assertFileGlobInArchive should only fail if file is present Like `assertFileCollected`, `assertFileGlobInArchive` should only fail if the referenced collection is not in the archive *and* it is present on the test system. If it is not present on the test system, sos cannot collect it and it is thus not an erro... | py |
diff --git a/src/authority/permissions.py b/src/authority/permissions.py
index <HASH>..<HASH> 100644
--- a/src/authority/permissions.py
+++ b/src/authority/permissions.py
@@ -50,7 +50,9 @@ class PermissionMetaclass(type):
perm = '%s.%s_%s' % (obj._meta.app_label, # polls.add_poll
... | Fixed fallback to Django's permission system | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/utils.py b/datadog_checks_dev/datadog_checks/dev/tooling/utils.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/utils.py
+++ b/datadog_checks_dev/datadog_checks/dev/tooling/utils.py
@@ -22,7 +22,7 @@ DOGWEB_JSON_DASHBOARDS = (
... | Fix elastic and redis dashboards name (#<I>) * Fix dashboard names in catalog | py |
diff --git a/workbench/clients/pe_sim_graph.py b/workbench/clients/pe_sim_graph.py
index <HASH>..<HASH> 100644
--- a/workbench/clients/pe_sim_graph.py
+++ b/workbench/clients/pe_sim_graph.py
@@ -60,9 +60,9 @@ def main():
# Test out PEFile -> pe_deep_sim -> pe_jaccard_sim -> graph
data_path = os.path.join(os... | also reducing the number of samples for pe_sim_graph | py |
diff --git a/tests/thumbnail_tests/tests.py b/tests/thumbnail_tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/thumbnail_tests/tests.py
+++ b/tests/thumbnail_tests/tests.py
@@ -597,7 +597,6 @@ class DummyTestCase(TestCase):
class ModelTestCase(SimpleTestCaseBase):
- @skip("Skip due 100% cpu usage without ... | Unskip valid test test_field1 Cpu usage is average on this test case. | py |
diff --git a/pipenv/project.py b/pipenv/project.py
index <HASH>..<HASH> 100644
--- a/pipenv/project.py
+++ b/pipenv/project.py
@@ -78,8 +78,8 @@ class _LockFileEncoder(json.JSONEncoder):
)
def default(self, obj):
- from prettytoml.elements.common import ContainerElement
- if isinstance(obj... | Also allow TokenElement in lock file encoder Can't be too careful hadling things here. | py |
diff --git a/tortilla/wrappers.py b/tortilla/wrappers.py
index <HASH>..<HASH> 100644
--- a/tortilla/wrappers.py
+++ b/tortilla/wrappers.py
@@ -52,7 +52,7 @@ class Client(object):
def _log(self, message, debug=None, **params):
display_log = self.debug
- if debug is True or debug is False:
+ ... | Changed debug check to something more logical | py |
diff --git a/O365/sharepoint.py b/O365/sharepoint.py
index <HASH>..<HASH> 100644
--- a/O365/sharepoint.py
+++ b/O365/sharepoint.py
@@ -187,7 +187,7 @@ class Site(ApiComponent):
return [self.list_constructor(parent=self, **{self._cloud_data_key: lst}) for lst in data.get('value', [])]
- def get_listb... | Update O<I>/sharepoint.py Thanks for the feedback.. | py |
diff --git a/pavement.py b/pavement.py
index <HASH>..<HASH> 100644
--- a/pavement.py
+++ b/pavement.py
@@ -108,10 +108,12 @@ def test(options):
def flake8(options):
noerror = getattr(options, "noerror", False)
complexity = getattr(options, "complexity", 22)
- sh("""flake8 . | perl -mstrict -mwarnings -nle... | flake8 should skip migrations files, as they do not conform to PEP8 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,9 @@ else:
import numpy.distutils
if sys.platform == 'darwin':
print("Platform Detection: Mac OS X. Link to openblas...")
- extra_link_args = ['-L/opt/local/lib -lopenblas']
+ extra_l... | Fix setup.py for macOS, | py |
diff --git a/stanza/utils/datasets/constituency/prepare_con_dataset.py b/stanza/utils/datasets/constituency/prepare_con_dataset.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/datasets/constituency/prepare_con_dataset.py
+++ b/stanza/utils/datasets/constituency/prepare_con_dataset.py
@@ -22,6 +22,9 @@ da_arboretum
... | Add a note on how to extract the danish treebank | py |
diff --git a/pghoard/object_storage/s3.py b/pghoard/object_storage/s3.py
index <HASH>..<HASH> 100644
--- a/pghoard/object_storage/s3.py
+++ b/pghoard/object_storage/s3.py
@@ -112,6 +112,9 @@ class S3Transfer(BaseTransfer):
except boto.exception.S3ResponseError as ex:
if ex.status == 404:
... | s3: bypass bucket validation errors to support stricter bucket ACLs Bypass but warn about bucket validation errors for S3. Bucket validation requires AWS IAM ListObjects permissions to the whole bucket without prefix limitations. In some cases, it may make sense to disallow listing of objects on bucket level, and e.g.... | py |
diff --git a/pyccc/ui.py b/pyccc/ui.py
index <HASH>..<HASH> 100644
--- a/pyccc/ui.py
+++ b/pyccc/ui.py
@@ -54,7 +54,7 @@ class JobStatusDisplay(Box):
self.on_displayed(self.update)
def update(self, *args):
- status = self._job.status
+ jobstat = self._job.status
status_display = S... | Fixes Autodesk/molecular-design-toolkit#2 | py |
diff --git a/openquake/hazardlib/tests/geo/surface/planar_test.py b/openquake/hazardlib/tests/geo/surface/planar_test.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/tests/geo/surface/planar_test.py
+++ b/openquake/hazardlib/tests/geo/surface/planar_test.py
@@ -55,8 +55,6 @@ class PlanarSurfaceCreationTestCase... | Unskipped test [skip CI] | py |
diff --git a/greenwich/raster.py b/greenwich/raster.py
index <HASH>..<HASH> 100644
--- a/greenwich/raster.py
+++ b/greenwich/raster.py
@@ -157,8 +157,8 @@ class ImageDriver(object):
driver -- str gdal.Driver name like 'GTiff' or gdal.Driver instance
kwargs -- GDAL raster creation options
"""
... | Check for basestring to allow for unicode strings | py |
diff --git a/templates/genomics/attributes/chromosome_id.py b/templates/genomics/attributes/chromosome_id.py
index <HASH>..<HASH> 100644
--- a/templates/genomics/attributes/chromosome_id.py
+++ b/templates/genomics/attributes/chromosome_id.py
@@ -10,6 +10,8 @@ class ChromosomeIdResolver(AttributeResolver):
ATTRIBU... | added simple check to chromosome id resolver | py |
diff --git a/src/urh/dev/native/RTLSDRTCP.py b/src/urh/dev/native/RTLSDRTCP.py
index <HASH>..<HASH> 100644
--- a/src/urh/dev/native/RTLSDRTCP.py
+++ b/src/urh/dev/native/RTLSDRTCP.py
@@ -24,6 +24,7 @@ class RTLSDRTCP(Device):
self.set_parameter("sampleRate", int(sample_rate))
self.set_paramete... | RTLSDRTCP: Added frequency correction (ppm) to backend | py |
diff --git a/buku.py b/buku.py
index <HASH>..<HASH> 100755
--- a/buku.py
+++ b/buku.py
@@ -2562,8 +2562,7 @@ POSITIONAL ARGUMENTS:
# Handle encrypt/decrypt options at top priority
if args.lock is not None:
BukuCrypt.encrypt_file(args.lock)
-
- if args.unlock is not None:
+ elif args.unlock is n... | Either encrypt or decrypt supported in one shot. Fix typo. | py |
diff --git a/umbra/browser.py b/umbra/browser.py
index <HASH>..<HASH> 100644
--- a/umbra/browser.py
+++ b/umbra/browser.py
@@ -134,7 +134,14 @@ class Browser:
except BaseException as e:
self.logger.error("exception closing websocket {} - {}".format(self._websock, e))
- ... | do not wait forever for zombie websocket threads (this change should also reveal how we get these sometimes) | py |
diff --git a/salt/modules/reg.py b/salt/modules/reg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/reg.py
+++ b/salt/modules/reg.py
@@ -598,7 +598,7 @@ def set_value(hive,
local_key = _mbcs_to_unicode(key)
local_vname = _mbcs_to_unicode(vname)
local_vtype = _mbcs_to_unicode(vty... | Fixed instance of unicode/str comparison and made it unicode/unicode | py |
diff --git a/examples/table/scatter.py b/examples/table/scatter.py
index <HASH>..<HASH> 100644
--- a/examples/table/scatter.py
+++ b/examples/table/scatter.py
@@ -34,8 +34,10 @@ from gwpy.table import EventTable
events = EventTable.fetch_open_data(
"GWTC-1-confident",
columns=(
- "mass_1_source", "mas... | Update examples/table/scatter.py | py |
diff --git a/buildbot/steps/shell.py b/buildbot/steps/shell.py
index <HASH>..<HASH> 100644
--- a/buildbot/steps/shell.py
+++ b/buildbot/steps/shell.py
@@ -516,12 +516,12 @@ class WarningCountingShellCommand(ShellCommand):
# stderr
for line in log.getText().split("\n"):
if directoryEnterRe... | Fix matching of directory enter/leave paths. | py |
diff --git a/salt/runner.py b/salt/runner.py
index <HASH>..<HASH> 100644
--- a/salt/runner.py
+++ b/salt/runner.py
@@ -92,6 +92,21 @@ class RunnerClient(object):
proc.start()
return tag
+ def master_call(self, fun, **kwargs):
+ '''
+ Send a function call to a wheel module through th... | Add master_call to runner client | py |
diff --git a/tests/run_tests.py b/tests/run_tests.py
index <HASH>..<HASH> 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -17,7 +17,7 @@
import os
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
from django.core import management | To run the tests from the root directory it's better to have tests.settings as the django settings module | py |
diff --git a/bin/filter-hits-to-fasta.py b/bin/filter-hits-to-fasta.py
index <HASH>..<HASH> 100755
--- a/bin/filter-hits-to-fasta.py
+++ b/bin/filter-hits-to-fasta.py
@@ -23,11 +23,11 @@ if __name__ == '__main__':
# Args for the JSON BLAST and FASTA files.
parser.add_argument(
- 'json', metavar='BLAS... | filter-hits-to-fasta to take many json files | py |
diff --git a/sdk/examples/poet_python/sawtooth_poet_engine/main.py b/sdk/examples/poet_python/sawtooth_poet_engine/main.py
index <HASH>..<HASH> 100644
--- a/sdk/examples/poet_python/sawtooth_poet_engine/main.py
+++ b/sdk/examples/poet_python/sawtooth_poet_engine/main.py
@@ -80,10 +80,17 @@ def main(args=None):
opt... | Add loading of log configuration Add loading of config files for the PoET engine. This will allow for broader configuration of the logging subsystem. | py |
diff --git a/napalm_logs/transport/prometheus.py b/napalm_logs/transport/prometheus.py
index <HASH>..<HASH> 100644
--- a/napalm_logs/transport/prometheus.py
+++ b/napalm_logs/transport/prometheus.py
@@ -441,7 +441,11 @@ class PrometheusTransport(TransportBase):
return
fun_name = '_parse_{}'.format... | Log the offending message whenever the parsing method fails | py |
diff --git a/conu/utils/probes.py b/conu/utils/probes.py
index <HASH>..<HASH> 100755
--- a/conu/utils/probes.py
+++ b/conu/utils/probes.py
@@ -131,8 +131,8 @@ class Probe(object):
else:
raise result
elif not (result == self.expected_retval):
- ... | Make probe more quiet for INFO logging level | py |
diff --git a/reana_db/version.py b/reana_db/version.py
index <HASH>..<HASH> 100644
--- a/reana_db/version.py
+++ b/reana_db/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.8.0a11"
+__version__ = "0.8.0a12" | release: <I>a<I> | py |
diff --git a/panoramix/utils.py b/panoramix/utils.py
index <HASH>..<HASH> 100644
--- a/panoramix/utils.py
+++ b/panoramix/utils.py
@@ -108,10 +108,23 @@ def color(s):
'#FF5A5F'
"""
colors = [
- "#FF5A5F", "#007A87", "#7B0051", "#00D1C1", "#8CE071", "#FFB400",
- "#FFAA91", "#B4A76C", "#9CA29... | Removing dups in color array | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ EXTRAS_REQUIRE = {
}
setup(name='pandaSDMX',
- version='1.0b1',
+ version='1.0b2.dev0',
description='A client for SDMX - Statistical Data and Metadata eXchange',
author='pandaSDMX dev... | Update version in setup.py, per RELEASING | py |
diff --git a/holoviews/core/overlay.py b/holoviews/core/overlay.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/overlay.py
+++ b/holoviews/core/overlay.py
@@ -86,7 +86,7 @@ class Overlay(Layout, CompositeOverlay):
@classmethod
def _from_values(cls, val):
- return reduce(lambda x,y: x*y, val).disp... | Fix to allow Overlay.from_values to work with nested containers | py |
diff --git a/pilbox/app.py b/pilbox/app.py
index <HASH>..<HASH> 100755
--- a/pilbox/app.py
+++ b/pilbox/app.py
@@ -15,7 +15,6 @@
# under the License.
import logging
-import os.path
from image import Image, ImageFormatError
from signature import verify_signature
import tornado.gen | Removed unused library from app server | py |
diff --git a/conftest.py b/conftest.py
index <HASH>..<HASH> 100644
--- a/conftest.py
+++ b/conftest.py
@@ -30,8 +30,8 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
import importlib
+import os
import sys... | include matrix info in pytest output (#<I>) this makes it a bit (not much) easier to tell in which matrix test exactly a test has run in the Jenkins UI | py |
diff --git a/pypump/models/note.py b/pypump/models/note.py
index <HASH>..<HASH> 100644
--- a/pypump/models/note.py
+++ b/pypump/models/note.py
@@ -59,7 +59,7 @@ class Note(AbstractModel, Postable, Likeable, Shareable, Commentable, Deleteable
self.deleted = deleted
self.liked = liked
- self.au... | Note.author is not always there Also, dont set author to pump.me if not found | py |
diff --git a/autopep8.py b/autopep8.py
index <HASH>..<HASH> 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -665,7 +665,7 @@ def _get_indentword(source):
if t[0] == token.INDENT:
indent_word = t[1]
break
- except tokenize.TokenError:
+ except (tokenize.TokenError, Inde... | Handle TokenError gracefully | py |
diff --git a/poetry/utils/env.py b/poetry/utils/env.py
index <HASH>..<HASH> 100644
--- a/poetry/utils/env.py
+++ b/poetry/utils/env.py
@@ -286,7 +286,13 @@ class EnvManager(object):
python_minor = env["minor"]
# Check if we are inside a virtualenv or not
- in_venv = os.environ.get("VI... | Detect Conda when looking for a virtual env (#<I>) Currently Poetry will detect that it is running in a usual virtual env created with "python -m venv" and will not create an additional env. This commit extends this logic to Conda, which uses different environment variables to indicate running in a virtual env. ... | py |
diff --git a/tests/test_notebooks.py b/tests/test_notebooks.py
index <HASH>..<HASH> 100644
--- a/tests/test_notebooks.py
+++ b/tests/test_notebooks.py
@@ -29,7 +29,6 @@ from nbconvert.preprocessors.execute import CellExecutionError
BLACKLISTED_NOTEBOOKS = [
"kernel_design.ipynb", # PR #1087
"coregionalisati... | regression.ipynb is ready for testing but had not been removed from blacklist | py |
diff --git a/ml-agents/mlagents/trainers/trainer_controller.py b/ml-agents/mlagents/trainers/trainer_controller.py
index <HASH>..<HASH> 100644
--- a/ml-agents/mlagents/trainers/trainer_controller.py
+++ b/ml-agents/mlagents/trainers/trainer_controller.py
@@ -87,22 +87,6 @@ class TrainerController:
self.tra... | Remove unused methods in trainer_controller.py (#<I>) | py |
diff --git a/tools/c7n_azure/c7n_azure/utils.py b/tools/c7n_azure/c7n_azure/utils.py
index <HASH>..<HASH> 100644
--- a/tools/c7n_azure/c7n_azure/utils.py
+++ b/tools/c7n_azure/c7n_azure/utils.py
@@ -29,7 +29,7 @@ from azure.mgmt.managementgroups import ManagementGroupsAPI
from azure.mgmt.web.models import NameValuePai... | Fix CI docker build (#<I>) | py |
diff --git a/djangoautoconf/urls.py b/djangoautoconf/urls.py
index <HASH>..<HASH> 100644
--- a/djangoautoconf/urls.py
+++ b/djangoautoconf/urls.py
@@ -30,8 +30,6 @@ urlpatterns = patterns('',
# url(r'^obj_sys/', include('obj_sys.urls')),
# url("^$", direct_to_template, {"... | Fix the issue of override url by mistake. | py |
diff --git a/girder/api/docs.py b/girder/api/docs.py
index <HASH>..<HASH> 100644
--- a/girder/api/docs.py
+++ b/girder/api/docs.py
@@ -33,7 +33,7 @@ def _toRoutePath(resource, route):
"""
# Convert wildcard tokens from :foo form to {foo} form
convRoute = [
- '{{{}}}'.format(token[1:]) if token[0] ... | Use an easier to understand format string in Swagger path creation | py |
diff --git a/datatableview/tests/example_project/example_project/example_app/models.py b/datatableview/tests/example_project/example_project/example_app/models.py
index <HASH>..<HASH> 100644
--- a/datatableview/tests/example_project/example_project/example_app/models.py
+++ b/datatableview/tests/example_project/example... | Fix missing on_delete requirement | py |
diff --git a/niworkflows/viz/utils.py b/niworkflows/viz/utils.py
index <HASH>..<HASH> 100644
--- a/niworkflows/viz/utils.py
+++ b/niworkflows/viz/utils.py
@@ -289,7 +289,7 @@ def _plot_anat_with_contours(image, segs=None, compress='auto',
colors = plot_params.pop('colors', []) or [] # colors should not be None
... | make sure the brainmask gets rendered last | py |
diff --git a/yangson/datamodel.py b/yangson/datamodel.py
index <HASH>..<HASH> 100644
--- a/yangson/datamodel.py
+++ b/yangson/datamodel.py
@@ -251,7 +251,7 @@ class SchemaNode(object):
"""
for s in stmt.substatements:
if s.prefix:
- key = DataModel._prefix_map[mid][s.prefix... | Fix missing separator for extension names. | py |
diff --git a/tests/test_gc.py b/tests/test_gc.py
index <HASH>..<HASH> 100644
--- a/tests/test_gc.py
+++ b/tests/test_gc.py
@@ -27,10 +27,6 @@ class TestGC(TestDvc):
self.create(path, i)
self.bad_cache.append(path)
- path = os.path.join(self.dvc.cache.cache_dir, '45', '6', 'data')
- ... | test: remove directory from gc test | py |
diff --git a/Server/Python/src/dbs/web/DBSReaderModel.py b/Server/Python/src/dbs/web/DBSReaderModel.py
index <HASH>..<HASH> 100644
--- a/Server/Python/src/dbs/web/DBSReaderModel.py
+++ b/Server/Python/src/dbs/web/DBSReaderModel.py
@@ -290,7 +290,7 @@ class DBSReaderModel(RESTModel):
* You can use ANY combinati... | split wildcared dataset by DBS server | py |
diff --git a/validator/sawtooth_validator/execution/context_manager.py b/validator/sawtooth_validator/execution/context_manager.py
index <HASH>..<HASH> 100644
--- a/validator/sawtooth_validator/execution/context_manager.py
+++ b/validator/sawtooth_validator/execution/context_manager.py
@@ -13,7 +13,6 @@
# limitations ... | Reduce cpu load on context id creation | py |
diff --git a/pypika/__init__.py b/pypika/__init__.py
index <HASH>..<HASH> 100644
--- a/pypika/__init__.py
+++ b/pypika/__init__.py
@@ -72,4 +72,4 @@ from .utils import (
__author__ = "Timothy Heys"
__email__ = "theys@kayak.com"
-__version__ = "0.15.0"
+__version__ = "0.15.1" | Upgraded version to <I> | py |
diff --git a/pmxbot/util.py b/pmxbot/util.py
index <HASH>..<HASH> 100644
--- a/pmxbot/util.py
+++ b/pmxbot/util.py
@@ -73,10 +73,9 @@ lookup.provider = 'Wordnik'
def urbanlookup(word):
'''Gets a Urban Dictionary summary for a word.
'''
- word = six.moves.urllib.parse.quote_plus(word)
url = "http://api.urbandicti... | Requests, you beautiful API, let me count the ways I love thee. | py |
diff --git a/luigi/task.py b/luigi/task.py
index <HASH>..<HASH> 100644
--- a/luigi/task.py
+++ b/luigi/task.py
@@ -346,7 +346,7 @@ class Task(object):
exc_desc = '%s[args=%s, kwargs=%s]' % (cls.__name__, args, kwargs)
# Fill in the positional arguments
- positional_params = [(n, p) for n, p i... | removed an is_global check, not sure why it wasn't caught by unit tests | py |
diff --git a/rest_framework_gis/fields.py b/rest_framework_gis/fields.py
index <HASH>..<HASH> 100644
--- a/rest_framework_gis/fields.py
+++ b/rest_framework_gis/fields.py
@@ -43,7 +43,6 @@ class GeometryField(Field):
except (ValueError, TypeError, GDALException) as e:
raise ValidationError(_('Unab... | [qa] Removed double blank line in GeometryField | py |
diff --git a/pycep_correios/__init__.py b/pycep_correios/__init__.py
index <HASH>..<HASH> 100644
--- a/pycep_correios/__init__.py
+++ b/pycep_correios/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
__title__ = 'PyCEP Correios'
-__version__ = '1.1.6'
+__version__ = '1.1.7'
__author__ = 'Michell Stuttgart Faria... | [NEW] Update version to <I> | py |
diff --git a/openquake/hazardlib/site.py b/openquake/hazardlib/site.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/site.py
+++ b/openquake/hazardlib/site.py
@@ -298,7 +298,10 @@ class SiteCollection(object):
# subsequent calculation. note that this doesn't protect arrays from
# being changed... | Removed check on duplicated sites Former-commit-id: <I>a<I>ad<I>de8dc5e8e<I>d<I>e<I>e<I>e<I> | py |
diff --git a/dataclasses.py b/dataclasses.py
index <HASH>..<HASH> 100644
--- a/dataclasses.py
+++ b/dataclasses.py
@@ -429,7 +429,7 @@ def _process_class(cls, repr, cmp, hash, init, frozen):
# _cls should never be specified by keyword, so start it with an
# underscore. The presense of _cls is used to detect if this
... | Change the paramaters to `dataclass` to move parameters which are more likely to be used to the front. Again, it doesn't really matter because they're all keyword only. | py |
diff --git a/holoviews/element/chart.py b/holoviews/element/chart.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/chart.py
+++ b/holoviews/element/chart.py
@@ -252,7 +252,7 @@ class Area(Curve):
vdims = [vdim, baseline_name]
baseline = None
stacked = areas.clone(shared_data=False)
- ... | Respect series order in stacked area plot (#<I>) This is a quick fix of #<I>, until a more thorough refactoring (if ever) as discussed there. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ requirements = ("requests==2.5.1", )
setup(
name='fiveoneone',
- version='0.4',
+ version='0.5.dev0',
license='MIT',
author='Ramiro Berrelleza',
author_email='rberrelleza@gmail.com', | Back to development: <I> | py |
diff --git a/gemini.py b/gemini.py
index <HASH>..<HASH> 100644
--- a/gemini.py
+++ b/gemini.py
@@ -30,6 +30,7 @@ import json
import requests
from requests.adapters import HTTPAdapter
+from requests.exceptions import ConnectionError
from multiprocessing import Pool
import xmltodict
@@ -112,8 +113,10 @@ def add_t... | #8 Pass and continue processing even if response is connection error * Error added to trials(response key) | py |
diff --git a/tools/py/serial/literate_pure_helper.py b/tools/py/serial/literate_pure_helper.py
index <HASH>..<HASH> 100644
--- a/tools/py/serial/literate_pure_helper.py
+++ b/tools/py/serial/literate_pure_helper.py
@@ -212,6 +212,7 @@ def process_resblock(resblock, model, doc):
process_docheader(props, model, ... | Make sure resources parsed from vlit are resolved against doc resource base | py |
diff --git a/invenio_github/api.py b/invenio_github/api.py
index <HASH>..<HASH> 100644
--- a/invenio_github/api.py
+++ b/invenio_github/api.py
@@ -372,7 +372,7 @@ class GitHubRelease(object):
"""Extract title from a release."""
repo_name = self.repository.get('full_name', self.repo_model.name)
... | api: fixed issue with release names being None or empty. | py |
diff --git a/eventsourcing/system.py b/eventsourcing/system.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/system.py
+++ b/eventsourcing/system.py
@@ -269,7 +269,7 @@ class System:
pipes: Iterable[Iterable[Type[Application]]],
):
classes: Dict[str, Type[Application]] = {}
- edges: Set[... | Adjusted derivation of edges to preserve order. | py |
diff --git a/abydos/corpus.py b/abydos/corpus.py
index <HASH>..<HASH> 100644
--- a/abydos/corpus.py
+++ b/abydos/corpus.py
@@ -104,4 +104,5 @@ class Corpus(object):
Each list within the corpus represents all the words of that document.
Thus the sentence level of lists has been flattened.
"""
... | added code for docs_of_words | py |
diff --git a/referral/middleware.py b/referral/middleware.py
index <HASH>..<HASH> 100644
--- a/referral/middleware.py
+++ b/referral/middleware.py
@@ -13,7 +13,7 @@ class ReferrerMiddleware():
if settings.AUTO_CREATE:
referrer = Referrer(name=referrer_name)
ref... | check for referral existance if referral auto creation is disabled for campaign check | py |
diff --git a/tipue_search/tipue_search.py b/tipue_search/tipue_search.py
index <HASH>..<HASH> 100644
--- a/tipue_search/tipue_search.py
+++ b/tipue_search/tipue_search.py
@@ -64,7 +64,7 @@ class Tipue_Search_JSON_Generator(object):
def create_tpage_node(self, srclink):
- srcfile = open(os.path.join(self... | fix tipue_search crash if system encoding is cp<I> Use encode='utf-8' instead of 'rb' when file read for beautifulSoup4 | py |
diff --git a/shutit_pexpect.py b/shutit_pexpect.py
index <HASH>..<HASH> 100755
--- a/shutit_pexpect.py
+++ b/shutit_pexpect.py
@@ -1129,7 +1129,10 @@ class ShutItPexpectSession(object):
if isinstance(res, str):
dist_string = res
d['distro'] = dist_string.lower().strip()
- d['install_type'] = (package... | Improve error message when running on an unsupported distribtution (Closes #<I>) | py |
diff --git a/test/backlog.py b/test/backlog.py
index <HASH>..<HASH> 100644
--- a/test/backlog.py
+++ b/test/backlog.py
@@ -6,14 +6,18 @@ from mpipe.Pipeline import Pipeline
from mpipe.UnorderedStage import UnorderedStage
+def write(value):
+ stdout.write(str(value))
+ stdout.flush()
+
def inc(x):
sleep... | Flush stdout after writing, for real time output. | py |
diff --git a/discord/client.py b/discord/client.py
index <HASH>..<HASH> 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -1613,7 +1613,18 @@ class Client:
if icon is not None:
icon = utils._bytes_to_base64_data(icon)
- r = yield from aiohttp.post(endpoints.SERVERS, headers=self.h... | Actually send the payload data in Client.create_server | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,8 +4,8 @@ setup(
name='django-queued-storage',
version='0.2',
description='Provides a proxy for django file storage, that allows you to upload files locally and eventually serve them remotely',
- author='S... | Changed the email address in the package info | py |
diff --git a/billy/utils/__init__.py b/billy/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/billy/utils/__init__.py
+++ b/billy/utils/__init__.py
@@ -154,3 +154,27 @@ def cd(path):
yield
finally:
os.chdir(old_dir)
+
+
+class CachedAttr(object):
+ '''Computes attribute value and caches it ... | Added by BFF, the CachedAttr decorator | py |
diff --git a/src/collectors/elb/test/testelb.py b/src/collectors/elb/test/testelb.py
index <HASH>..<HASH> 100644
--- a/src/collectors/elb/test/testelb.py
+++ b/src/collectors/elb/test/testelb.py
@@ -14,12 +14,23 @@ from diamond.collector import Collector
from elb import ElbCollector
+def run_only_if_boto_is_availa... | Only run unit test if boto is installed | py |
diff --git a/pymemcache/__init__.py b/pymemcache/__init__.py
index <HASH>..<HASH> 100644
--- a/pymemcache/__init__.py
+++ b/pymemcache/__init__.py
@@ -1 +1 @@
-__version__ = '1.2.1'
+__version__ = '1.2.2' | Increasing version for pypi | py |
diff --git a/Test/function_test.py b/Test/function_test.py
index <HASH>..<HASH> 100644
--- a/Test/function_test.py
+++ b/Test/function_test.py
@@ -555,5 +555,8 @@ Example : online_help("J") or online_help(2)
0.36170212765957444
>>> cm.Chi_Squared
8.429166666666667
+>>> cm = ConfusionMatrix(matrix={0:{0:42,1:7},1:{1:... | fix : verified test added for Q #<I> | py |
diff --git a/netmiko/ssh_autodetect.py b/netmiko/ssh_autodetect.py
index <HASH>..<HASH> 100644
--- a/netmiko/ssh_autodetect.py
+++ b/netmiko/ssh_autodetect.py
@@ -90,7 +90,7 @@ SSH_MAPPER_BASE = {
},
'juniper_junos': {
"cmd": "show version | match JUNOS",
- "search_patterns": ["JUNOS Software ... | Update SSH autodetect for Juniper EX series | py |
diff --git a/src/calmjs/toolchain.py b/src/calmjs/toolchain.py
index <HASH>..<HASH> 100644
--- a/src/calmjs/toolchain.py
+++ b/src/calmjs/toolchain.py
@@ -1231,8 +1231,8 @@ class ES5Toolchain(Toolchain):
around, using the es5 Unparser, pretty printer version.
"""
- def __init__(self):
- super(ES5T... | The ES5 toolchain should pass constructor args | py |
diff --git a/moto/cloudformation/utils.py b/moto/cloudformation/utils.py
index <HASH>..<HASH> 100644
--- a/moto/cloudformation/utils.py
+++ b/moto/cloudformation/utils.py
@@ -6,7 +6,6 @@ import yaml
import os
import string
-from cfnlint import decode, core
from moto.core import ACCOUNT_ID
@@ -62,6 +61,8 @@ def... | Keep cfnlint import function-local (~1s) Saves about 1s of startup time. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,15 +3,15 @@ from setuptools import setup, find_packages
setup(
name='graypy',
- version='0.1',
+ version='0.2.1',
description="Python logging handler that sends messages in GELF (Graylog Extended Log Form... | Bumbed version and changed the url. | py |
diff --git a/spyderlib/requirements.py b/spyderlib/requirements.py
index <HASH>..<HASH> 100644
--- a/spyderlib/requirements.py
+++ b/spyderlib/requirements.py
@@ -46,6 +46,10 @@ def check_qt():
"%s %s+ is required (found v%s)."
% (package_name, required_ver, actual_v... | Add PyQt5 in the dialog shown when no Python Qt bindings are found | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
setup(
name='django-rq-jobs',
- version='0.1.1',
+ version='0.1.2',
author='Ilan Steemers',
author_email='koed00@g... | Another pypi release. | py |
diff --git a/tests/test_pystmark.py b/tests/test_pystmark.py
index <HASH>..<HASH> 100644
--- a/tests/test_pystmark.py
+++ b/tests/test_pystmark.py
@@ -68,6 +68,12 @@ class PystTestCaseBase(TestCase):
msg = '{0} [{1}]'.format(msg, msg_suffix)
self.fail(msg)
+ def assertIsNot(self, a, b):
+ ... | add assertIsNot for py<I> compatibility in tests | py |
diff --git a/authlib/views.py b/authlib/views.py
index <HASH>..<HASH> 100644
--- a/authlib/views.py
+++ b/authlib/views.py
@@ -88,7 +88,12 @@ def login(
@never_cache
-def oauth2(request, client_class, post_login_response=post_login_response):
+def oauth2(
+ request,
+ client_class,
+ post_login_response=p... | Make email_login overrideable | py |
diff --git a/py/selenium/webdriver/chromium/webdriver.py b/py/selenium/webdriver/chromium/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/chromium/webdriver.py
+++ b/py/selenium/webdriver/chromium/webdriver.py
@@ -59,6 +59,7 @@ class ChromiumDriver(RemoteWebDriver):
warnings.warn('serv... | [py] Handle the case where ignoring proxy is not set | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.