diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/spinoff/actor/cell.py b/spinoff/actor/cell.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/cell.py
+++ b/spinoff/actor/cell.py
@@ -257,8 +257,9 @@ class Cell(Greenlet, _BaseCell):
# proc
- def get(self, *patterns):
- self.get_pt = OR(*patterns)
+ def get(self, pattern=ANY, timeout=... | Changed Actor.get to always take exactly one pattern | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -67,7 +67,7 @@ if os.environ.get("_CYTHONIZE_WITH_COVERAGE", None):
}
general_macros = [('CYTHON_TRACE_NOGIL', '1')]
else:
- compiler_directives = None
+ compiler_directives = {}
cythonize_opts = {}
... | Update setup.py Seems to fix things when building with no special env vars. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -61,8 +61,9 @@ class Mock(object):
return Mock()
-MOCK_MODULES = ['matplotlib', 'matplotlib.pyplot', 'matplotlib.pylab', 'matplotlib.figure',
- 'matplotlib.widgets', 'matplotlib.cbook', 'pyfits'... | mocked Cython out.... nuts, I had ONE working install | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -67,6 +67,9 @@ setup(
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: Implementati... | Added missing trove classifiers. | py |
diff --git a/master/buildbot/test/fake/reactor.py b/master/buildbot/test/fake/reactor.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/fake/reactor.py
+++ b/master/buildbot/test/fake/reactor.py
@@ -147,10 +147,9 @@ class TestReactor(NonReactor, CoreReactor, Clock):
return Clock.callLater(self, when, w... | test: Only execute current calls during reactor.stop() | py |
diff --git a/aioblescan/aioblescan.py b/aioblescan/aioblescan.py
index <HASH>..<HASH> 100644
--- a/aioblescan/aioblescan.py
+++ b/aioblescan/aioblescan.py
@@ -999,7 +999,7 @@ class HCI_LE_Meta_Event(Packet):
data=x.decode(data)
code=self.payload[0]
if code.val==b"\x02":
- ev=Re... | HCI_LE_Meta_Event: use Reports for RepeatedField name Field names are also used as search key. As the inner data field HCI_LEM_Adv_Report is already using "Adv Report", it would be better the encapsulating parent container use another name to avoid more chaos. | py |
diff --git a/holoviews/operation/view.py b/holoviews/operation/view.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/view.py
+++ b/holoviews/operation/view.py
@@ -261,6 +261,9 @@ class roi_table(ViewOperation):
bit_mask = mask.data.astype(np.bool)
roi = mview.data[bit_mask]
+ if len(r... | The roi_table operation now ensures some elements are always unmasked | py |
diff --git a/elifetools/tests/test_raw_parser.py b/elifetools/tests/test_raw_parser.py
index <HASH>..<HASH> 100644
--- a/elifetools/tests/test_raw_parser.py
+++ b/elifetools/tests/test_raw_parser.py
@@ -250,6 +250,26 @@ class TestJatsParser(unittest.TestCase):
self.assertEqual(len(raw_parser.list_item(soup)), ... | Tests for higher raw parser coverage. | py |
diff --git a/crosscat/utils/plot_utils.py b/crosscat/utils/plot_utils.py
index <HASH>..<HASH> 100644
--- a/crosscat/utils/plot_utils.py
+++ b/crosscat/utils/plot_utils.py
@@ -270,3 +270,26 @@ def savefig_legend_outside(filename, ax=None, bbox_inches='tight'):
bbox_inches=bbox_inches,
... | add plot functions for analyze's do_diagnostics | py |
diff --git a/salt/fileserver/gitfs.py b/salt/fileserver/gitfs.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/gitfs.py
+++ b/salt/fileserver/gitfs.py
@@ -53,7 +53,9 @@ def _get_ref(repo, short):
'''
for ref in repo.refs:
if isinstance(ref, git.RemoteReference):
- if short == os.path.b... | Add new ref logic to _get_ref as well | py |
diff --git a/tcex/app_config_object/profile.py b/tcex/app_config_object/profile.py
index <HASH>..<HASH> 100644
--- a/tcex/app_config_object/profile.py
+++ b/tcex/app_config_object/profile.py
@@ -380,6 +380,14 @@ class Profile:
def migrate(self):
"""Migrate profile to latest schema and rewrite data."""
+... | Short circuit migrations by file modification time | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -548,7 +548,10 @@ class SSH(object):
}
# save load to the master job cache
- self.returners['{0}.save_load'.format(self... | when using local_cache we have to pass the list of minions | py |
diff --git a/pyuv/_version.py b/pyuv/_version.py
index <HASH>..<HASH> 100644
--- a/pyuv/_version.py
+++ b/pyuv/_version.py
@@ -1,2 +1,2 @@
-__version__ = "1.2.0"
+__version__ = "1.3.0" | core: set version to <I> | py |
diff --git a/bin/fasta-base-indices.py b/bin/fasta-base-indices.py
index <HASH>..<HASH> 100755
--- a/bin/fasta-base-indices.py
+++ b/bin/fasta-base-indices.py
@@ -2,6 +2,7 @@
from __future__ import print_function
+import sys
import os
import argparse
@@ -60,8 +61,16 @@ else:
targets = set(args.bases)
i... | Print summary at the end of fasta-base-indices.py to stderr. | py |
diff --git a/py/h2o_bc.py b/py/h2o_bc.py
index <HASH>..<HASH> 100644
--- a/py/h2o_bc.py
+++ b/py/h2o_bc.py
@@ -5,7 +5,7 @@ import h2o_print as h2p, h2o_util
from h2o_test import \
get_sandbox_name, clean_sandbox, check_sandbox_for_errors, clean_sandbox_doneToLine,\
- verboseprint, OutWrapper, log, flatfile_p... | forgot special code jenkins user runs | py |
diff --git a/psqlextra/manager/manager.py b/psqlextra/manager/manager.py
index <HASH>..<HASH> 100644
--- a/psqlextra/manager/manager.py
+++ b/psqlextra/manager/manager.py
@@ -18,17 +18,22 @@ class PostgresManager(Manager.from_queryset(PostgresQuerySet)):
super().__init__(*args, **kwargs)
- # make su... | Iterate through all databases to check if at least one of them is configured to use psqlextra.backend | py |
diff --git a/lems/model/component.py b/lems/model/component.py
index <HASH>..<HASH> 100644
--- a/lems/model/component.py
+++ b/lems/model/component.py
@@ -425,7 +425,7 @@ class Children(LEMSBase):
Exports this object into a LEMS XML object
"""
- return '<{2} name="{0}" type="{1}"/>'.format(se... | feat: include description in Child and Children XML export | py |
diff --git a/test/cache_test.py b/test/cache_test.py
index <HASH>..<HASH> 100644
--- a/test/cache_test.py
+++ b/test/cache_test.py
@@ -122,11 +122,3 @@ def test_hash_arguments():
assert len(keys) == 2, "only two keys are set"
assert ("mykey/args:") in keys[0]
-
- # arguments must be hashable
- try:
- ... | remove the assertion that lists can't be passed apparently pickle does just fine with lists. | py |
diff --git a/test/spambl_test.py b/test/spambl_test.py
index <HASH>..<HASH> 100644
--- a/test/spambl_test.py
+++ b/test/spambl_test.py
@@ -203,21 +203,14 @@ class DNSBLServiceTest(unittest.TestCase):
inverted_ips = '1.0.255.255', '2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.2.1.0.c.b.a.0.8.b.d.0.1.0.0.2'
value... | Refactor DNSBLServiceTest to use setUpQuerySideEffect | py |
diff --git a/mutagen/_vorbis.py b/mutagen/_vorbis.py
index <HASH>..<HASH> 100644
--- a/mutagen/_vorbis.py
+++ b/mutagen/_vorbis.py
@@ -127,7 +127,7 @@ class VComment(mutagen.Metadata, list):
tag = tag.decode("ascii")
if is_valid_key(tag):
self.appen... | _vorbis.py: replaced call to 'ord' with bytearray | py |
diff --git a/pmagpy/new_builder.py b/pmagpy/new_builder.py
index <HASH>..<HASH> 100644
--- a/pmagpy/new_builder.py
+++ b/pmagpy/new_builder.py
@@ -495,10 +495,6 @@ class MagicDataFrame(object):
self.df['num'] = range(len(self.df))
df_data = self.df
# edit first of existing data that meets con... | remove unneeded printing in new_builder | py |
diff --git a/botapi.py b/botapi.py
index <HASH>..<HASH> 100644
--- a/botapi.py
+++ b/botapi.py
@@ -894,6 +894,18 @@ class TelegramBot:
self.request_args['request_method'] = val
@property
+ def id(self):
+ return self._bot_user.id
+
+ @property
+ def first_name(self):
+ return s... | Adding properties to get bot user info | py |
diff --git a/linkcheck/checker/mailtourl.py b/linkcheck/checker/mailtourl.py
index <HASH>..<HASH> 100644
--- a/linkcheck/checker/mailtourl.py
+++ b/linkcheck/checker/mailtourl.py
@@ -358,7 +358,6 @@ class MailtoUrl (urlbase.UrlBase):
return
connection = self.url_connection
self.url_connec... | Remove stray raise statement from previous commit. | py |
diff --git a/phypno/scroll_data.py b/phypno/scroll_data.py
index <HASH>..<HASH> 100644
--- a/phypno/scroll_data.py
+++ b/phypno/scroll_data.py
@@ -3,7 +3,7 @@ lg = getLogger(__name__)
lg.setLevel(INFO)
from functools import partial
-from os.path import dirname, basename
+from os.path import dirname, basename, split... | suggests name for sleep scoring xml files | py |
diff --git a/indra/tools/machine/machine.py b/indra/tools/machine/machine.py
index <HASH>..<HASH> 100644
--- a/indra/tools/machine/machine.py
+++ b/indra/tools/machine/machine.py
@@ -413,10 +413,10 @@ def get_ndex_cred(config):
ndex_cred = config.get('ndex')
if not ndex_cred:
return
- elif not nde... | add checkin in environment for NDEx credentials | py |
diff --git a/src/python/tmclient/api.py b/src/python/tmclient/api.py
index <HASH>..<HASH> 100644
--- a/src/python/tmclient/api.py
+++ b/src/python/tmclient/api.py
@@ -23,6 +23,7 @@ import yaml
import cv2
import glob
import pandas as pd
+from pandas.io.common import EmptyDataError
import numpy as np
from prettytabl... | Fix bug related to download of empty datasets | py |
diff --git a/plenum/test/primary_selection/test_primary_selection.py b/plenum/test/primary_selection/test_primary_selection.py
index <HASH>..<HASH> 100644
--- a/plenum/test/primary_selection/test_primary_selection.py
+++ b/plenum/test/primary_selection/test_primary_selection.py
@@ -16,8 +16,6 @@ from plenum.test.test_n... | revert a fix for the tests | py |
diff --git a/ghettoq/backends/pyredis.py b/ghettoq/backends/pyredis.py
index <HASH>..<HASH> 100644
--- a/ghettoq/backends/pyredis.py
+++ b/ghettoq/backends/pyredis.py
@@ -2,10 +2,29 @@ from redis import Redis as Redis
from ghettoq.backends.base import BaseBackend
DEFAULT_PORT = 6379
-
+DEFAULT_DB = 0
class Red... | Now when using Redis database backend, the specified database name must be integer. The following values are considered OK and are accepted: provided value - used database None - 0 (default database is used) "" - 0 (default database is used) "/" - 0 (default database is used) "/1" - 1 "2" - 2 3 - 3 Note: The ba... | py |
diff --git a/logstash_formatter/__init__.py b/logstash_formatter/__init__.py
index <HASH>..<HASH> 100644
--- a/logstash_formatter/__init__.py
+++ b/logstash_formatter/__init__.py
@@ -136,7 +136,11 @@ class LogstashFormatterV1(LogstashFormatter):
fields = record.__dict__.copy()
- if 'msg' in fields a... | Fix #<I> -- allow passing messages as dicts in LogstashFormatterV1 | py |
diff --git a/fireplace/player.py b/fireplace/player.py
index <HASH>..<HASH> 100644
--- a/fireplace/player.py
+++ b/fireplace/player.py
@@ -42,7 +42,8 @@ class Player(Entity):
ret += entity.entities
for entity in self.secrets:
ret += entity.entities
- return chain([self], list(self.hero.entities), ret)
+ # ... | Ensure Player receives TURN_BEGIN event after its cards In Hearthstone, the card draw happens after the minions trigger their beginning of turn actions. This has consequences for eg. Alarm-o-Bot. | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -731,9 +731,11 @@ def check_sandbox_for_errors(sandboxIgnoreErrors=False, cloudShutdownIsError=Fal
if (printSingleWarning):
# don't print these lines
- if not (re.... | don't echo the multiple IPs WARN from h2o | py |
diff --git a/dpxdt/tools/run_server.py b/dpxdt/tools/run_server.py
index <HASH>..<HASH> 100755
--- a/dpxdt/tools/run_server.py
+++ b/dpxdt/tools/run_server.py
@@ -107,7 +107,8 @@ def main(block=True):
server.app.run(
debug=FLAGS.reload_code,
host=FLAGS.host,
- ... | Run multithreaded server when in production | py |
diff --git a/cdata/summary.py b/cdata/summary.py
index <HASH>..<HASH> 100644
--- a/cdata/summary.py
+++ b/cdata/summary.py
@@ -76,7 +76,7 @@ def summarize_entity_person(person):
value = person.get("authorOf")
if value:
- ret.append(u'主要作品是{}'.format(value))
+ ret.append(u'主要作品有{}'.format(value... | Changed one character in summary.py for readability. | py |
diff --git a/riemann/client.py b/riemann/client.py
index <HASH>..<HASH> 100644
--- a/riemann/client.py
+++ b/riemann/client.py
@@ -9,6 +9,11 @@ import struct
import riemann.riemann_pb2
+class RiemannError(Exception):
+ """Error class for errors recived from the Riemann server"""
+ pass
+
+
class Transport(o... | Riemann error handling and basic RetryingTCPTransport | py |
diff --git a/abydos/tests/test_clustering.py b/abydos/tests/test_clustering.py
index <HASH>..<HASH> 100644
--- a/abydos/tests/test_clustering.py
+++ b/abydos/tests/test_clustering.py
@@ -135,6 +135,20 @@ class SPEEDCOPTestCases(unittest.TestCase):
self.assertEqual(omission_key('lacrimal'), 'MCLRAI')
+class... | added test case stubs for BWT functions | py |
diff --git a/homely/_utils.py b/homely/_utils.py
index <HASH>..<HASH> 100644
--- a/homely/_utils.py
+++ b/homely/_utils.py
@@ -326,7 +326,7 @@ class RepoListConfig(JsonConfig):
"""
# note that the paths in self.jsondata were already _homepath2real()'d
# in the class' __init__()
- resol... | Fix bug where you couldn't run 'homely update ~/dotfiles/' | py |
diff --git a/theanets/main.py b/theanets/main.py
index <HASH>..<HASH> 100644
--- a/theanets/main.py
+++ b/theanets/main.py
@@ -140,6 +140,8 @@ class Experiment(object):
def _build_trainers(self, **kwargs):
'''Build trainers from command-line arguments.
'''
+ if not isinstance(self.args.opt... | Ensure that the passed-in optimizer is a sequence. | py |
diff --git a/haproxy/datadog_checks/haproxy/haproxy.py b/haproxy/datadog_checks/haproxy/haproxy.py
index <HASH>..<HASH> 100644
--- a/haproxy/datadog_checks/haproxy/haproxy.py
+++ b/haproxy/datadog_checks/haproxy/haproxy.py
@@ -237,6 +237,9 @@ class HAProxy(AgentCheck):
custom_tags = [] if custom_tags is None e... | Fix error in case of empty stat info (#<I>) | py |
diff --git a/cinje/helpers.py b/cinje/helpers.py
index <HASH>..<HASH> 100644
--- a/cinje/helpers.py
+++ b/cinje/helpers.py
@@ -1,26 +1,21 @@
# encoding: utf-8
# pragma: no cover
-try:
- unicode = unicode
-except:
- unicode = str
+from json import dumps as _json
+
+from .util import str, iterate, xmlargs, interrupta... | Unification of version-specific code. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ with (here / 'README.md').open(encoding='utf-8') as f:
setup(
name='pythonanywhere',
- version='0.7',
+ version='0.7.4',
description='PythonAnywhere helper tools for users',
long_descriptio... | Bumped version for release. by: Conrad, Giles | py |
diff --git a/pilo/fields.py b/pilo/fields.py
index <HASH>..<HASH> 100644
--- a/pilo/fields.py
+++ b/pilo/fields.py
@@ -914,9 +914,9 @@ class FormMeta(type):
is_field = lambda x: isinstance(x, Field)
fields = []
for name, attr in inspect.getmembers(cls, is_field):
- attr.attach(cls,... | dont trample inherited field attchmts | py |
diff --git a/torchvision/transforms.py b/torchvision/transforms.py
index <HASH>..<HASH> 100644
--- a/torchvision/transforms.py
+++ b/torchvision/transforms.py
@@ -34,7 +34,7 @@ class ToTensor(object):
else:
# handle PIL Image
img = torch.ByteTensor(torch.ByteStorage.from_buffer(pic.to... | Add support for images with other than 3 channels | py |
diff --git a/uproot/version.py b/uproot/version.py
index <HASH>..<HASH> 100644
--- a/uproot/version.py
+++ b/uproot/version.py
@@ -30,7 +30,7 @@
import re
-__version__ = "2.8.13"
+__version__ = "2.8.12"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__)) | [skip ci] oh, travis was just backlogged (without an indicator that this was the case) | py |
diff --git a/jujuresources/backend.py b/jujuresources/backend.py
index <HASH>..<HASH> 100644
--- a/jujuresources/backend.py
+++ b/jujuresources/backend.py
@@ -10,7 +10,6 @@ from urllib import urlretrieve, urlopen
from urlparse import urlparse, urljoin, parse_qs
import zipfile
-
VERBOSE = False
@@ -45,7 +44,7 @... | Support tuples for resource names lists | py |
diff --git a/aegea/batch.py b/aegea/batch.py
index <HASH>..<HASH> 100755
--- a/aegea/batch.py
+++ b/aegea/batch.py
@@ -210,7 +210,14 @@ def submit(args):
ensure_queue(args.queue)
job = clients.batch.submit_job(**submit_args)
if args.watch:
- watch(watch_parser.parse_args([job["jobId"]]))
+... | batch: ask to terminate job on Ctrl-C | py |
diff --git a/WrightTools/data/_data.py b/WrightTools/data/_data.py
index <HASH>..<HASH> 100644
--- a/WrightTools/data/_data.py
+++ b/WrightTools/data/_data.py
@@ -549,14 +549,14 @@ class Data(Group):
# get axis index --------------------------------------------------------------------------
axis_index... | Moments use joint_shape of axes (#<I>) * Use joint shape of axes in moment, not total data shape | py |
diff --git a/testing/test_conftest.py b/testing/test_conftest.py
index <HASH>..<HASH> 100644
--- a/testing/test_conftest.py
+++ b/testing/test_conftest.py
@@ -171,6 +171,7 @@ def test_conftest_confcutdir(testdir):
"""))
result = testdir.runpytest("-h", "--confcutdir=%s" % x, x)
result.stdout.fnmatch_line... | Check conftest.py is not loaded with --confcutdir. The test creates a conftest.py with "assert 0" which never should be loaded. However, if it were loaded, the test would still pass as it never checks if it was loaded or not. See #<I>. | py |
diff --git a/ethereum/tests/test_abi.py b/ethereum/tests/test_abi.py
index <HASH>..<HASH> 100644
--- a/ethereum/tests/test_abi.py
+++ b/ethereum/tests/test_abi.py
@@ -41,6 +41,10 @@ def test_abi_decode_single_bytes():
typ = ['bytes', '', []]
assert b'\x01\x02' == abi.decode_single(typ, abi.encode_single(typ, ... | test for encoding prefixed address in abi | py |
diff --git a/pancloud/event.py b/pancloud/event.py
index <HASH>..<HASH> 100755
--- a/pancloud/event.py
+++ b/pancloud/event.py
@@ -226,12 +226,12 @@ class EventService(object):
"""
def _ack(channel_id, **kwargs):
r = self.ack(channel_id, **kwargs)
- try:
- r_json... | ack/nack now return no content on success. | py |
diff --git a/aptly/publisher/__init__.py b/aptly/publisher/__init__.py
index <HASH>..<HASH> 100644
--- a/aptly/publisher/__init__.py
+++ b/aptly/publisher/__init__.py
@@ -245,7 +245,7 @@ class Publish(object):
self.name = '%s/%s' % (self.prefix or '.', self.distribution)
self.full_name = "{}{}{}".fo... | support publishing to local storage (again) at least with aptly_<I>+ds1-4+b4 (found in Debian) doing a simple "PUT /api/publish/local-repo" or "DELETE /api/publish/local-repo" will result in a <I>. the proper way is to either use a storage specification ":." or leave it empty (but keep the slash intact) Closes: <URL... | py |
diff --git a/formfield/fields.py b/formfield/fields.py
index <HASH>..<HASH> 100644
--- a/formfield/fields.py
+++ b/formfield/fields.py
@@ -58,7 +58,7 @@ class FormField(forms.MultiValueField):
elif callable(form):
form_class = form()
self.form = form_class()
- elif isinstance(f... | [<I>] Minor update to fields | py |
diff --git a/test/exception_handling.py b/test/exception_handling.py
index <HASH>..<HASH> 100644
--- a/test/exception_handling.py
+++ b/test/exception_handling.py
@@ -115,7 +115,7 @@ class hs071(object):
#
# Example for the use of the intermediate callback.
#
- print "Objective value a... | Updated print statements for <I>+. | py |
diff --git a/distutils/tests/test_dist.py b/distutils/tests/test_dist.py
index <HASH>..<HASH> 100644
--- a/distutils/tests/test_dist.py
+++ b/distutils/tests/test_dist.py
@@ -2,7 +2,6 @@
import os
import io
import sys
-import unittest
import warnings
import textwrap
import functools
@@ -89,9 +88,9 @@ class TestDi... | Prefer pytest for skip | py |
diff --git a/tests/test_http_writer.py b/tests/test_http_writer.py
index <HASH>..<HASH> 100644
--- a/tests/test_http_writer.py
+++ b/tests/test_http_writer.py
@@ -153,10 +153,11 @@ def test_write_drain(stream, loop):
async def test_multiple_drains(stream, loop):
stream.available = False
- msg = http.PayloadW... | fix test_multiple_drains (was not covering what it should) (#<I>) | py |
diff --git a/shinken/modules/livestatus_broker/livestatus_broker.py b/shinken/modules/livestatus_broker/livestatus_broker.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/livestatus_broker/livestatus_broker.py
+++ b/shinken/modules/livestatus_broker/livestatus_broker.py
@@ -857,7 +857,12 @@ class Livestatus_broker:... | *Fix a bug in livestatus. Catch the exception if a peer is not listening for the response | py |
diff --git a/bcbio/structural/prioritize.py b/bcbio/structural/prioritize.py
index <HASH>..<HASH> 100644
--- a/bcbio/structural/prioritize.py
+++ b/bcbio/structural/prioritize.py
@@ -62,7 +62,7 @@ def _prioritize_vcf(caller, vcf_file, prioritize_by, post_prior_fn, work_dir, da
ann_opt = ""
... | Sort simplified priority VCF by reference to handle breakend resolution logic | py |
diff --git a/anycast_healthchecker/__init__.py b/anycast_healthchecker/__init__.py
index <HASH>..<HASH> 100644
--- a/anycast_healthchecker/__init__.py
+++ b/anycast_healthchecker/__init__.py
@@ -4,5 +4,6 @@
__title__ = 'anycast_healthchecker'
__author__ = 'Pavlos Parissis'
+__license__ = 'Apache 2.0'
__version__ =... | include license to __init__ | py |
diff --git a/py/test/rsession/web.py b/py/test/rsession/web.py
index <HASH>..<HASH> 100644
--- a/py/test/rsession/web.py
+++ b/py/test/rsession/web.py
@@ -286,6 +286,11 @@ class ExportedMethods(BasicExternal):
def report_ReceivedItemOutcome(self, event):
self.all += 1
self.pending_events.put(even... | [svn r<I>] Count also FAILED TO LOAD MODULE failures in web interface --HG-- branch : trunk | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -18,7 +18,7 @@ import sphinx_rtd_theme
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is... | Fix conf.py for autodoc issue. | py |
diff --git a/inspire_utils/name.py b/inspire_utils/name.py
index <HASH>..<HASH> 100644
--- a/inspire_utils/name.py
+++ b/inspire_utils/name.py
@@ -200,7 +200,14 @@ class ParsedName(object):
return final_name
@classmethod
- def from_parts(cls, first, last, middle=None, suffix=None, title=None):
+ d... | name: relax the parameters in `from_parts` Allow first and last to be None. | py |
diff --git a/peeweext/sequence.py b/peeweext/sequence.py
index <HASH>..<HASH> 100644
--- a/peeweext/sequence.py
+++ b/peeweext/sequence.py
@@ -1,7 +1,9 @@
import peewee as pw
+from . import Model
-class SequenceModel(pw.Model):
+
+class SequenceModel(Model):
class Meta:
seq_scope_field_name = None | Updated: using peeweext.Model as base class for SequenceModel | py |
diff --git a/can/interfaces/__init__.py b/can/interfaces/__init__.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/__init__.py
+++ b/can/interfaces/__init__.py
@@ -51,4 +51,4 @@ except ImportError:
}
)
-VALID_INTERFACES = frozenset(list(BACKENDS.keys()))
+VALID_INTERFACES = frozenset(BACKENDS.keys()) | Remove unnssesary conversion to list | py |
diff --git a/frosted/api.py b/frosted/api.py
index <HASH>..<HASH> 100644
--- a/frosted/api.py
+++ b/frosted/api.py
@@ -67,6 +67,15 @@ def check(codeString, filename, reporter=modReporter.Default, settings_path=None
settings_path = settings_path or os.getcwd()
active_settings = settings.from_path(settings_pa... | Make sure not_ overrides work at python API level | py |
diff --git a/uwsgiconf/presets/nice.py b/uwsgiconf/presets/nice.py
index <HASH>..<HASH> 100644
--- a/uwsgiconf/presets/nice.py
+++ b/uwsgiconf/presets/nice.py
@@ -244,11 +244,10 @@ class Section(_Section):
))
new_line = logging.encoders.newline()
- t = vars_enc.TIME_FORMAT('iso')
l... | Get rid of a var. | py |
diff --git a/src/python/test/test_dxclient.py b/src/python/test/test_dxclient.py
index <HASH>..<HASH> 100755
--- a/src/python/test/test_dxclient.py
+++ b/src/python/test/test_dxclient.py
@@ -6850,6 +6850,7 @@ class TestDXGetExecutables(DXTestCase):
with self.assertSubprocessFailure(stderr_regexp='can only ... | Followup to <I>feeae: create app only conditionally | py |
diff --git a/proso/release.py b/proso/release.py
index <HASH>..<HASH> 100644
--- a/proso/release.py
+++ b/proso/release.py
@@ -1 +1 @@
-VERSION = '3.12.0'
+VERSION = '3.13.0.dev' | start working on <I>.dev | py |
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/consumer.py
+++ b/openid/consumer/consumer.py
@@ -778,7 +778,9 @@ class SuccessResponse(Response):
@ivar identity_url: The identity URL that has been authenticated
- @ivar endpoint: The e... | [project @ consumer.consumer.SuccessResponse.__doc__: mention where to find the CanonicalID] | py |
diff --git a/trunk/metpy/readers/mesonet.py b/trunk/metpy/readers/mesonet.py
index <HASH>..<HASH> 100644
--- a/trunk/metpy/readers/mesonet.py
+++ b/trunk/metpy/readers/mesonet.py
@@ -434,7 +434,7 @@ if __name__ == '__main__':
axs[0].xaxis.set_minor_locator(HourLocator(tz=tz))
# Draw a vertical line ... | Fix problem from trying to get the last time of data after doing conversions. Instead, get the last time from the time range used for plotting. git-svn-id: <URL> | py |
diff --git a/script/bump-version.py b/script/bump-version.py
index <HASH>..<HASH> 100755
--- a/script/bump-version.py
+++ b/script/bump-version.py
@@ -14,7 +14,12 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def main():
parser = argparse.ArgumentParser(
- description='Bump versi... | Add examples to make usage description clearer. | py |
diff --git a/smbclient/_pool.py b/smbclient/_pool.py
index <HASH>..<HASH> 100644
--- a/smbclient/_pool.py
+++ b/smbclient/_pool.py
@@ -206,7 +206,7 @@ def delete_session(server, port=445, connection_cache=None):
:param port: The port used for the server.
:param connection_cache: Connection cache to be used wi... | Consistent connection_key naming (#<I>) The naming of the connection_key isn't consistent between register_session and delete_session | py |
diff --git a/ibis/backends/dask/execution/selection.py b/ibis/backends/dask/execution/selection.py
index <HASH>..<HASH> 100644
--- a/ibis/backends/dask/execution/selection.py
+++ b/ibis/backends/dask/execution/selection.py
@@ -163,9 +163,6 @@ def execute_selection_dataframe(
op.table.op(), predicates, data... | PREF: Do not materialize predicates on selection (#<I>) | py |
diff --git a/ReText/window.py b/ReText/window.py
index <HASH>..<HASH> 100644
--- a/ReText/window.py
+++ b/ReText/window.py
@@ -111,7 +111,7 @@ class ReTextWindow(QMainWindow):
self.actionChangeFont = self.act(self.tr('Change default font'), trig=self.changeFont)
self.actionSearch = self.act(self.tr('Find text'), ... | Fix triggering boolean actions in PySide | py |
diff --git a/src/saml2/population.py b/src/saml2/population.py
index <HASH>..<HASH> 100644
--- a/src/saml2/population.py
+++ b/src/saml2/population.py
@@ -22,11 +22,13 @@ class Population(object):
name_id = session_info["name_id"]
# make friendly to (JSON) serialization
- session_info['name_i... | Update population.py using pysaml2 with djangosaml2-knaperek==<I> reults in an attribute error: str' object has no attribute 'name_qualifier' The IdentityCache set method also calls code(name_id) but then it is already coded | py |
diff --git a/djpaypal/models/webhooks.py b/djpaypal/models/webhooks.py
index <HASH>..<HASH> 100644
--- a/djpaypal/models/webhooks.py
+++ b/djpaypal/models/webhooks.py
@@ -236,6 +236,7 @@ class WebhookEventTrigger(models.Model):
def process(self, save=True):
self.webhook_event = WebhookEvent.process(self.data)
s... | Clear WebhookEventTrigger.traceback on process() Closes #2 | py |
diff --git a/_pytest/nose.py b/_pytest/nose.py
index <HASH>..<HASH> 100644
--- a/_pytest/nose.py
+++ b/_pytest/nose.py
@@ -41,7 +41,7 @@ def pytest_make_collect_report(collector):
def call_optional(obj, name):
method = getattr(obj, name, None)
- if method is not None and not hasattr(method, "_pytestfixturefu... | nose.py: don't try to call setup if it's not callable | py |
diff --git a/cache.py b/cache.py
index <HASH>..<HASH> 100644
--- a/cache.py
+++ b/cache.py
@@ -16,7 +16,7 @@ cache = Cache(default_store, namespace='namespace')
cache.get('key', func, args=(), kwargs={}, maxage=None)
# Manually remove something.
-cache.del(key)
+cache.delete(key)
cache.expire(key, ttl)
cache.expi... | Can deal with None from item access. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ setup(
'mutagen',
'pillow',
'h5py',
- 'numexpr>=2.0.0'
+ 'numexpr>=2.0.0',
'tables',
'pyyaml',
'simplejson', | fix:(travis): fix typo | py |
diff --git a/validator/sawtooth_validator/journal/responder.py b/validator/sawtooth_validator/journal/responder.py
index <HASH>..<HASH> 100644
--- a/validator/sawtooth_validator/journal/responder.py
+++ b/validator/sawtooth_validator/journal/responder.py
@@ -162,13 +162,8 @@ class ResponderBlockResponseHandler(Handler)... | Remove extra NetworkAcknowledgement in responder | py |
diff --git a/djohno/models.py b/djohno/models.py
index <HASH>..<HASH> 100644
--- a/djohno/models.py
+++ b/djohno/models.py
@@ -1 +1,4 @@
# djohno knows no models, djohno needs no models
+
+# Tricking coverage.py
+pass | Fairly sad commit to make coverage.py not divide by zero | py |
diff --git a/controller/api/views.py b/controller/api/views.py
index <HASH>..<HASH> 100644
--- a/controller/api/views.py
+++ b/controller/api/views.py
@@ -150,13 +150,11 @@ class AppViewSet(BaseDeisViewSet):
def logs(self, request, **kwargs):
app = self.get_object()
try:
- logs = app.l... | ref(controller): move response into try block | py |
diff --git a/ipyrad/assemble/refmap.py b/ipyrad/assemble/refmap.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/refmap.py
+++ b/ipyrad/assemble/refmap.py
@@ -612,8 +612,11 @@ def bam_region_to_fasta(data, sample, chrom, region_start, region_end):
## Set output files and flags for PE/SE
... | Fix to allow pipe character in chrom names of reference sequences | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,8 +5,9 @@ import ast
import sys
-if sys.version_info < (3, 5):
- sys.exit("Sorry, autopilot only supports Python 3.5 or better")
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+if sys.version_info < (3, 5) ... | Fix readthedocs build We only support Python <I> or better, but readthedocs doesn't support <I> yet. Since it needs to import the package only to get the version number, it should be ok to ignore the Python version on this case. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,9 @@ setup(
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.2',
... | Added the correct Python 3 classifiers to setup.py. | py |
diff --git a/spacy/cli/project.py b/spacy/cli/project.py
index <HASH>..<HASH> 100644
--- a/spacy/cli/project.py
+++ b/spacy/cli/project.py
@@ -284,8 +284,8 @@ def project_init(
# opt-in explicitly. If they want it, they can always enable it.
if not analytics:
run_command(["dvc", "config",... | fix project_init for relative path | py |
diff --git a/ecell4/util/viz.py b/ecell4/util/viz.py
index <HASH>..<HASH> 100644
--- a/ecell4/util/viz.py
+++ b/ecell4/util/viz.py
@@ -151,7 +151,7 @@ def plot_number_observer_with_matplotlib(*args, **kwargs):
import numpy
import collections
- special_keys = ("xlim", "ylim", "xlabel", "ylabel", "legend",... | Enable to save an image file rather than displaying the plot | py |
diff --git a/stagpy/stagyyparsers.py b/stagpy/stagyyparsers.py
index <HASH>..<HASH> 100644
--- a/stagpy/stagyyparsers.py
+++ b/stagpy/stagyyparsers.py
@@ -72,7 +72,7 @@ def time_series(timefile, colnames):
irow = iprev
if rows_to_del:
rows_to_keep = set(range(len(data))) - set(rows_to_del)
- ... | Remove deprecated convert arg in pd.DataFrame.take This was to switch off conversion of negative indices to positive ones since it isn't necessary here. Conversion is always done in newer versions of pandas. | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -428,6 +428,11 @@ class MainWindow(QMainWindow):
if options.window_title is not None:
title += ' -- ' + options.window_title
+ i... | Set show_internal_console_if_traceback to True when DEV mode or testing is activated. | py |
diff --git a/netpyne/plotting/plotRaster.py b/netpyne/plotting/plotRaster.py
index <HASH>..<HASH> 100644
--- a/netpyne/plotting/plotRaster.py
+++ b/netpyne/plotting/plotRaster.py
@@ -322,8 +322,9 @@ def plotRaster(
metaFig = rasterPlotter.metafig
# add spike lines
- for spkt in spkTimes:
- metaFig... | linked sync lines to syncLines option, fixed bug | py |
diff --git a/bibliopixel/animation/collection.py b/bibliopixel/animation/collection.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/animation/collection.py
+++ b/bibliopixel/animation/collection.py
@@ -31,17 +31,15 @@ class Collection(animation.BaseAnimation):
@property
def current_animation(self):
- ... | Simplify collection.py slightly. | py |
diff --git a/mappyfile/tokens.py b/mappyfile/tokens.py
index <HASH>..<HASH> 100644
--- a/mappyfile/tokens.py
+++ b/mappyfile/tokens.py
@@ -102,7 +102,7 @@ COMPOSITE_NAMES = frozenset("""
maxsubdivide
maxtemplate
maxwidth
- metadata
+
mimetype
minarcs
minboxsize
@@ -185,13 +185,18 @@... | Add new singleton type for composites with only one entry | py |
diff --git a/src/guake.py b/src/guake.py
index <HASH>..<HASH> 100644
--- a/src/guake.py
+++ b/src/guake.py
@@ -716,6 +716,8 @@ class Guake(SimpleGladeApp):
time = gtk.gdk.x11_get_server_time(self.window.window)
except AttributeError:
time = 0
+
+ self.window.window.show()
... | Trying to grab the atention of the window manager to guakes window | py |
diff --git a/DemoPrograms/Demo_Buttons_Base64_Shaded.py b/DemoPrograms/Demo_Buttons_Base64_Shaded.py
index <HASH>..<HASH> 100644
--- a/DemoPrograms/Demo_Buttons_Base64_Shaded.py
+++ b/DemoPrograms/Demo_Buttons_Base64_Shaded.py
@@ -16,12 +16,13 @@ import PySimpleGUI as sg
"""
def main():
- sg.theme('Light Green 6... | Spelling errors. Changed to dark theme | py |
diff --git a/xclim/indices/_agro.py b/xclim/indices/_agro.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/_agro.py
+++ b/xclim/indices/_agro.py
@@ -677,7 +677,7 @@ def standardized_precipitation_index(
group = "time.dayofyear"
else:
_, base, _, _ = parse_offset(freq)
- if base in ["Y", ... | Only daily or monthly freq now allowed | py |
diff --git a/spacy/tests/parser/test_space_attachment.py b/spacy/tests/parser/test_space_attachment.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/parser/test_space_attachment.py
+++ b/spacy/tests/parser/test_space_attachment.py
@@ -1,6 +1,9 @@
from __future__ import unicode_literals
import pytest
+import numpy
+... | * Add test for Issue #<I>: Whitespace at sentence boundary causes sentence boundary error. | py |
diff --git a/wafer/schedule/views.py b/wafer/schedule/views.py
index <HASH>..<HASH> 100644
--- a/wafer/schedule/views.py
+++ b/wafer/schedule/views.py
@@ -41,7 +41,11 @@ def make_schedule_row(schedule_day, slot, seen_items):
"""Create a row for the schedule table."""
row = ScheduleRow(schedule_day, slot)
... | Add venue to list of related items pulled in in make_schedule_row. | py |
diff --git a/spikeextractors/recordingextractor.py b/spikeextractors/recordingextractor.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/recordingextractor.py
+++ b/spikeextractors/recordingextractor.py
@@ -100,7 +100,7 @@ class RecordingExtractor(ABC):
return len(self.get_channel_ids())
def get_dty... | Use list of channels in get_dtype | py |
diff --git a/salt/utils/process.py b/salt/utils/process.py
index <HASH>..<HASH> 100644
--- a/salt/utils/process.py
+++ b/salt/utils/process.py
@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+# ndle-*- coding: utf-8 -*-
'''
Functions for daemonizing and otherwise modifying running processes
'''
@@ -807,11 +807,15 @@ class ... | Allow for main thread having terminated pid, before ThreadPoolExecutor threads | py |
diff --git a/minimalmodbus.py b/minimalmodbus.py
index <HASH>..<HASH> 100644
--- a/minimalmodbus.py
+++ b/minimalmodbus.py
@@ -2393,7 +2393,7 @@ def _interpretRawMessage(inputstr):
7: 'q' 71 113 Checksum, CRC MSB
"""
-
+ raise NotImplementedError()
output = ''
output += 'Mo... | Protected some unused functions with NotImplementedError | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -323,17 +323,10 @@ class EventBasedCalculator(base.HazardCalculator):
for srcs in smap:
srcs... | Regular logic tree reduction [skip hazardlib] | py |
diff --git a/indra/tests/test_pysb_assembler.py b/indra/tests/test_pysb_assembler.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_pysb_assembler.py
+++ b/indra/tests/test_pysb_assembler.py
@@ -485,7 +485,7 @@ def test_print_model():
pa = PysbAssembler()
pa.add_statements([st])
pa.make_model()
- ... | Update test for PySB assembler | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.