diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/streamlink/stream/hls_playlist.py b/src/streamlink/stream/hls_playlist.py index <HASH>..<HASH> 100644 --- a/src/streamlink/stream/hls_playlist.py +++ b/src/streamlink/stream/hls_playlist.py @@ -122,6 +122,7 @@ class M3U8Parser(object): match = re.match("(?P<duration>\d+(\.\d+)?)(,(?P<title>.+)...
stream.hls_playlist: invalid durations in EXTINF lines are ignored
py
diff --git a/buildozer/targets/android_new.py b/buildozer/targets/android_new.py index <HASH>..<HASH> 100644 --- a/buildozer/targets/android_new.py +++ b/buildozer/targets/android_new.py @@ -13,7 +13,7 @@ from os.path import join, expanduser, realpath class TargetAndroidNew(TargetAndroid): targetname = 'android' ...
Changed p4a directory name for current_toolchain
py
diff --git a/stmhal/boards/STM32F4DISC/staccel.py b/stmhal/boards/STM32F4DISC/staccel.py index <HASH>..<HASH> 100755 --- a/stmhal/boards/STM32F4DISC/staccel.py +++ b/stmhal/boards/STM32F4DISC/staccel.py @@ -21,6 +21,7 @@ from pyb import SPI READWRITE_CMD = const(0x80) MULTIPLEBYTE_CMD = const(0x40) LIS302DL_WHO_AM_...
Added LIS<I>DL ID check
py
diff --git a/aioredis/connection.py b/aioredis/connection.py index <HASH>..<HASH> 100644 --- a/aioredis/connection.py +++ b/aioredis/connection.py @@ -1488,7 +1488,6 @@ class BlockingConnectionPool(ConnectionPool): self.queue_class = queue_class self.timeout = timeout self._connections: List[...
Continue to rely on super to create _lock
py
diff --git a/lib/methods/composer.py b/lib/methods/composer.py index <HASH>..<HASH> 100644 --- a/lib/methods/composer.py +++ b/lib/methods/composer.py @@ -37,7 +37,9 @@ class ComposerMethod(BaseMethod): def createApp(self, config, stage, dockerConfig, **kwargs): if (stage == 'installDependencies'): + sel...
Setup executables for createApp
py
diff --git a/code/png.py b/code/png.py index <HASH>..<HASH> 100755 --- a/code/png.py +++ b/code/png.py @@ -1153,6 +1153,8 @@ def from_array(a, mode=None, info={}): # Fill in and/or check entries in *info*. # Dimensions. if 'size' in info: + assert len(info["size"]) == 2 + # Check width, h...
Added important assertion to 'size' check
py
diff --git a/test/test_yubico.py b/test/test_yubico.py index <HASH>..<HASH> 100644 --- a/test/test_yubico.py +++ b/test/test_yubico.py @@ -35,7 +35,7 @@ class TestCRC(unittest.TestCase): self.assertEqual(yubico_util.hexdump(bytes, length=4), \ '0000 01 02 03 04\n0004 05 06 07 ...
Unshadow a hexdump test The test_hexdump method was defined twice, the second overwriting the first. Use a unique name to have them both run.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -47,11 +47,14 @@ setup( 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', + 'Programming Language :: Python :: Implementation ::...
Updated trove classifiers.
py
diff --git a/sysconfig.py b/sysconfig.py index <HASH>..<HASH> 100644 --- a/sysconfig.py +++ b/sysconfig.py @@ -204,13 +204,15 @@ def parse_makefile(fn, g=None): n = m.group(1) if done.has_key(n): after = value[m.end():] - value = value[:m.start()...
Fix bugs with integer-valued variables when parsing Makefiles. Values for done[n] can be integers as well as strings, but the code concatenates them with strings (fixed by adding a str()) and calls string.strip() on them (fixed by rearranging the logic) (Presumably this wasn't noticed previously because parse_makefil...
py
diff --git a/ontquery/terms.py b/ontquery/terms.py index <HASH>..<HASH> 100644 --- a/ontquery/terms.py +++ b/ontquery/terms.py @@ -630,6 +630,9 @@ class OntTerm(InstrumentedIdentifier, OntId): if self._graph: print(self._graph.serialize(format='nifttl').decode()) + def asId(self): + re...
OntTerm.asId added but not quite working
py
diff --git a/udata/core/dataset/models.py b/udata/core/dataset/models.py index <HASH>..<HASH> 100644 --- a/udata/core/dataset/models.py +++ b/udata/core/dataset/models.py @@ -159,15 +159,16 @@ class ResourceMixin(object): 'dateCreated': self.created_at.isoformat(), 'dateModified': self.modifie...
Insert the statistics only when they are available
py
diff --git a/pgmpy/inference/ExactInference.py b/pgmpy/inference/ExactInference.py index <HASH>..<HASH> 100644 --- a/pgmpy/inference/ExactInference.py +++ b/pgmpy/inference/ExactInference.py @@ -388,6 +388,10 @@ class BeliefPropagation(Inference): .. math:: \max_{C_i - S_{i, j}} \beta_i = \max_{C_j - S_{i, j...
[refs #<I>] Fixed bug in _is_converged() method in BeliefPropgation class. There was a bug in _is_converged() method in BeliefPropagation which din't work when there is only one node in the junction tree. Due to this bug, the check whether the tree is calibrated or not used to fail because of which we were not able to...
py
diff --git a/psamm/lpsolver/generic.py b/psamm/lpsolver/generic.py index <HASH>..<HASH> 100644 --- a/psamm/lpsolver/generic.py +++ b/psamm/lpsolver/generic.py @@ -104,7 +104,7 @@ class Solver(BaseSolver): self._requirements = {key: value for key, value in iteritems(kwargs) if v...
Fix exception when PSAMM_SOLVER is not set
py
diff --git a/tests/test_osmnx.py b/tests/test_osmnx.py index <HASH>..<HASH> 100644 --- a/tests/test_osmnx.py +++ b/tests/test_osmnx.py @@ -459,4 +459,4 @@ def test_geometries(): gdf = ox.gdf_from_place(place1, tags=tags) gdf = ox.gdf_from_address(address, tags={"amenity": "school"}) # tests multipolygon ...
tries to reduce memory usage during test
py
diff --git a/benchbuild/source/git.py b/benchbuild/source/git.py index <HASH>..<HASH> 100644 --- a/benchbuild/source/git.py +++ b/benchbuild/source/git.py @@ -25,7 +25,7 @@ class Git(base.FetchableSource): remote: str, local: str, clone: bool = True, - limit: int = 10, + limit: ...
Make type of limit `Optional[int]`. The implementation of `Git.versions()` suggests that limit should be an `Optional[int]` instead of `int`.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,8 +27,8 @@ install_requires = [ 'slumber>=0.7,<0.8', 'selenium>=3.11,<4', 'transifex-client>=0.14,<0.15', - 'cryptography>=3.2,<4', - 'PyJWT>=1.7,<2', + 'cryptography~=3.4', + 'PyJWT~=2.1.0', ...
Update PyJWT and cryptography libraries … this will lead to breaking changes: `jwt.encode/decode` method arguments and return types have changed
py
diff --git a/umodbus/server.py b/umodbus/server.py index <HASH>..<HASH> 100644 --- a/umodbus/server.py +++ b/umodbus/server.py @@ -61,9 +61,15 @@ class RequestHandler(BaseRequestHandler): """ def handle(self): try: - request_adu = self.request.recv(1024) - response_adu = self.pr...
#<I> Don't close connection after handling 1 request.
py
diff --git a/master/buildbot/test/unit/test_master.py b/master/buildbot/test/unit/test_master.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/unit/test_master.py +++ b/master/buildbot/test/unit/test_master.py @@ -16,6 +16,7 @@ from __future__ import absolute_import from __future__ import print_function +i...
Add test for when_timestamp to test new name appearing
py
diff --git a/pyrax/rax_identity.py b/pyrax/rax_identity.py index <HASH>..<HASH> 100644 --- a/pyrax/rax_identity.py +++ b/pyrax/rax_identity.py @@ -124,6 +124,7 @@ class Identity(object): authentication endpoint and attempts to log in. If successful, records the token information. """ + ...
Set the 'authenticated' attribute of the identity object to False upon the call to authenticate(). GitHub issue #<I>
py
diff --git a/tests/utils/test_serve_logs.py b/tests/utils/test_serve_logs.py index <HASH>..<HASH> 100644 --- a/tests/utils/test_serve_logs.py +++ b/tests/utils/test_serve_logs.py @@ -21,6 +21,7 @@ from os.path import basename from tempfile import NamedTemporaryFile from time import sleep +import pytest import requ...
Move test_serve_logs to quarantine as it fails on mysql sometimes (#<I>) Issue recorded at #<I>
py
diff --git a/tmuxp/workspacebuilder.py b/tmuxp/workspacebuilder.py index <HASH>..<HASH> 100644 --- a/tmuxp/workspacebuilder.py +++ b/tmuxp/workspacebuilder.py @@ -86,13 +86,30 @@ class WorkspaceBuilder(object): if server: self.server = server + else: + self.server = None ...
some docs for .build
py
diff --git a/atomicpuppy/atomicpuppy.py b/atomicpuppy/atomicpuppy.py index <HASH>..<HASH> 100644 --- a/atomicpuppy/atomicpuppy.py +++ b/atomicpuppy/atomicpuppy.py @@ -161,6 +161,8 @@ class SubscriberInfo: class Page: + DEFAULT_METADATA = {} + DEFAULT_LINK_METADATA = None def __init__(self, js, logger)...
add metadata and link-metadata as default constants
py
diff --git a/autopep8.py b/autopep8.py index <HASH>..<HASH> 100755 --- a/autopep8.py +++ b/autopep8.py @@ -45,8 +45,8 @@ from distutils.version import StrictVersion try: import pep8 try: - if StrictVersion(pep8.__version__) < StrictVersion('1.3a2'): - print('pep8 >= 1.3 required') + ...
Require the same pep8 version throughout
py
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/lsctables.py +++ b/glue/ligolw/lsctables.py @@ -1000,6 +1000,7 @@ class CoincInspiralTable(table.Table): tableName = "coinc_inspiral:table" validcolumns = { "coinc_event_id": "ilwd:char", + ...
Added 'ifos' column along with get_ifos and set_ifos methods to coinc_inspiral table.
py
diff --git a/gwpy/tests/test_timeseries.py b/gwpy/tests/test_timeseries.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_timeseries.py +++ b/gwpy/tests/test_timeseries.py @@ -498,6 +498,22 @@ class TimeSeriesTestCase(TimeSeriesTestMixin, SeriesTestCase): self.assertEqual(ts.dx, units.Quantity(0.00024414062...
tests: added test for TimeSeries.q_transform
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,7 @@ # === setup.py ------------------------------------------------------------=== # Copyright © 2011, RokuSigma Inc. (Mark Friedenbach <mark@roku-sigma.com>) +# as an unpublished work. # # RokuSigma Inc. (the “...
Added “as an unpublished work” to copyright header.
py
diff --git a/aiomysql/pool.py b/aiomysql/pool.py index <HASH>..<HASH> 100644 --- a/aiomysql/pool.py +++ b/aiomysql/pool.py @@ -122,9 +122,12 @@ class Pool(asyncio.AbstractServer): self._closed = True - @asyncio.coroutine def acquire(self): """Acquire free connection from the pool.""" + ...
add pool.acquire context manager capabilities
py
diff --git a/nameko/testing/pytest.py b/nameko/testing/pytest.py index <HASH>..<HASH> 100644 --- a/nameko/testing/pytest.py +++ b/nameko/testing/pytest.py @@ -287,7 +287,9 @@ def websocket(web_config_port): '127.0.0.1', web_config_port) gr = eventlet.spawn(ws_app.run_forever) active_socke...
expose ws test app. attach to socket for backwards compat
py
diff --git a/visidata/vdtui.py b/visidata/vdtui.py index <HASH>..<HASH> 100755 --- a/visidata/vdtui.py +++ b/visidata/vdtui.py @@ -2089,6 +2089,8 @@ def confirm(prompt): yn = input(prompt, value='no', record=False)[:1] if not yn or yn not in 'Yy': error('disconfirmed') + return True + import un...
[vdtui] confirm() returns True if it doesn't raise
py
diff --git a/test/consumer.py b/test/consumer.py index <HASH>..<HASH> 100644 --- a/test/consumer.py +++ b/test/consumer.py @@ -139,6 +139,15 @@ def _test_success(user_url, delegate_url, links, immediate=False): run() assert fetcher.num_assocs == 1 + # Another association is created if we remove the exist...
[project @ Cover getting a new association in the consumer test]
py
diff --git a/test/test_autopep8.py b/test/test_autopep8.py index <HASH>..<HASH> 100644 --- a/test/test_autopep8.py +++ b/test/test_autopep8.py @@ -313,6 +313,20 @@ class Foo(): self._inner_setup(line) self.assertEqual(self.result, fixed) + def test_e225_with_indentation_fix(self): + line =...
Add test case for E<I> with 2-space indentation This is related to issue #<I>. This was fixed in e9ab<I>c<I>cab<I>b<I>d0d5e<I>f1cfc<I>.
py
diff --git a/pyemma/coordinates/transform/tica.py b/pyemma/coordinates/transform/tica.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/transform/tica.py +++ b/pyemma/coordinates/transform/tica.py @@ -251,7 +251,7 @@ class TICA(StreamingTransformer): self._logger.debug("Running TICA with tau=%i; Esti...
[tica] Check for long enough trajs observes stride
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from distutils.core import setup #from setuptools import setup setup(name='lifxlan', - version='1.1.9', + version='1.1.10', description='API for local communication with LIFX devices over a LA...
version bump for networking fixes, especially involving discovery
py
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index <HASH>..<HASH> 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -100,6 +100,18 @@ class TestFrameComparisons(object): # Arithmetic class TestFrameFlexArithmetic(object): ...
TST: Test for bug fixed during #<I> discussion (#<I>)
py
diff --git a/astropy_healpix/tests/test_healpy.py b/astropy_healpix/tests/test_healpy.py index <HASH>..<HASH> 100644 --- a/astropy_healpix/tests/test_healpy.py +++ b/astropy_healpix/tests/test_healpy.py @@ -100,6 +100,7 @@ def test_pix2ang_shape(): frac=floats(0, 1, allow_nan=False, allow_infinity=False).filter...
Added failing example for test_pix2ang
py
diff --git a/docx/oxml/table.py b/docx/oxml/table.py index <HASH>..<HASH> 100644 --- a/docx/oxml/table.py +++ b/docx/oxml/table.py @@ -651,7 +651,7 @@ class CT_Tc(BaseOxmlElement): """ The tbl element this tc element appears in. """ - return self.xpath('./ancestor::w:tbl')[0] + ...
oxml: improve CT_Tc._tc XPath expression Under certain circumstances, the w:tbl parent of a w:tc element is not returned first in the result sequence. Add a position qualifier such that only the first ancestor is returned and the return sequence only contains that single value.
py
diff --git a/hamster/eds.py b/hamster/eds.py index <HASH>..<HASH> 100644 --- a/hamster/eds.py +++ b/hamster/eds.py @@ -28,12 +28,6 @@ except: pass def get_eds_tasks(): - # the development version of evolution API causes whole thing to hang - # http://bugzilla.gnome.org/show_bug.cgi?id=571503 - # disabl...
the hang has been fixed, closing bug <I> svn path=/trunk/; revision=<I>
py
diff --git a/sphinx/docserver.py b/sphinx/docserver.py index <HASH>..<HASH> 100644 --- a/sphinx/docserver.py +++ b/sphinx/docserver.py @@ -54,7 +54,7 @@ def shutdown_server(): def ui(): time.sleep(0.5) - input("Press any key to exit...") + input("Press <ENTER> to exit...\n") if __name__ == "__main__"...
Changed docserver shutdown instruction. (#<I>)
py
diff --git a/framer.py b/framer.py index <HASH>..<HASH> 100644 --- a/framer.py +++ b/framer.py @@ -33,8 +33,6 @@ class Framer: :param message: a list of bytes to send :return: None """ - self._port.write([self._START_OF_FRAME]) - message = message if isinstance(message, list) ...
Optimized pyserial transmission
py
diff --git a/pydeps/dot.py b/pydeps/dot.py index <HASH>..<HASH> 100644 --- a/pydeps/dot.py +++ b/pydeps/dot.py @@ -13,7 +13,7 @@ from . import cli win32 = sys.platform == 'win32' -def is_unicode(s): +def is_unicode(s): # pragma: nocover """Test unicode with py3 support. """ try: @@ -22,7 +22,7 @@ d...
Don't cover py2/3 compatibility code.
py
diff --git a/thinc/neural/_classes/resnet.py b/thinc/neural/_classes/resnet.py index <HASH>..<HASH> 100644 --- a/thinc/neural/_classes/resnet.py +++ b/thinc/neural/_classes/resnet.py @@ -18,7 +18,5 @@ def Residual(layer): for layer in self._layers: for hook in layer.on_data_hooks: ...
Don't initialize residual children to zero
py
diff --git a/openquake/hazardlib/source/base.py b/openquake/hazardlib/source/base.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/source/base.py +++ b/openquake/hazardlib/source/base.py @@ -56,7 +56,7 @@ class BaseSeismicSource(with_metaclass(abc.ABCMeta)): if not self.num_ruptures: self....
Changed the weight of the sources [skip hazardlib]
py
diff --git a/pylls/client.py b/pylls/client.py index <HASH>..<HASH> 100644 --- a/pylls/client.py +++ b/pylls/client.py @@ -141,19 +141,3 @@ class CachetAPIEndPoint(object): self._put = api_client.put self._delete = api_client.delete self.paginate_get = partial(api_client.paginate_request, met...
Removing unimplemented methods
py
diff --git a/great_expectations/data_asset/data_asset.py b/great_expectations/data_asset/data_asset.py index <HASH>..<HASH> 100644 --- a/great_expectations/data_asset/data_asset.py +++ b/great_expectations/data_asset/data_asset.py @@ -234,7 +234,7 @@ class DataAsset(object): return outer_wrapper - def _...
Use more sensitive null handling for expectation_suite_name
py
diff --git a/iron_core.py b/iron_core.py index <HASH>..<HASH> 100644 --- a/iron_core.py +++ b/iron_core.py @@ -64,7 +64,7 @@ class IronClient: config["api_version"] = products[product]["version"] config = configFromFile(config, - os.path.expanduser(".iron.json"), product) + ...
Fixed bug in loading the ~/.iron.json file. Refactored HTTP errors.
py
diff --git a/python/ray/tune/logger.py b/python/ray/tune/logger.py index <HASH>..<HASH> 100644 --- a/python/ray/tune/logger.py +++ b/python/ray/tune/logger.py @@ -115,7 +115,7 @@ class _TFLogger(Logger): tag="ray/tune/{}".format(attr), simple_value=getattr(result, attr))) ...
[tune] Tensorboard logger incorrectly reports training iteration as cur timestep value
py
diff --git a/graphistry/pygraphistry.py b/graphistry/pygraphistry.py index <HASH>..<HASH> 100644 --- a/graphistry/pygraphistry.py +++ b/graphistry/pygraphistry.py @@ -9,6 +9,7 @@ import os import sys import calendar import time +from datetime import datetime import gzip import io import json @@ -349,4 +350,6 @@ c...
Bugfix(etl1): Do not choke on dates parsed by pandas as datetime objects when serializing to json.
py
diff --git a/decorating/debugging.py b/decorating/debugging.py index <HASH>..<HASH> 100644 --- a/decorating/debugging.py +++ b/decorating/debugging.py @@ -35,7 +35,7 @@ def debug(function): if len(args) == 1: args = '({})'.format(args[0]) print('@{0}{1} -> {2}'.format(function.__name__, a...
deubbing: Add scalabe builds on your Machine!
py
diff --git a/intranet/apps/announcements/api.py b/intranet/apps/announcements/api.py index <HASH>..<HASH> 100644 --- a/intranet/apps/announcements/api.py +++ b/intranet/apps/announcements/api.py @@ -10,9 +10,8 @@ logger = logging.getLogger(__name__) class IsAnnouncementAdminOrReadOnly(permissions.BasePermission): ...
Remove duplication in announcements permission check
py
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py index <HASH>..<HASH> 100644 --- a/salt/cli/__init__.py +++ b/salt/cli/__init__.py @@ -94,7 +94,7 @@ class SaltCMD(parsers.SaltCMDOptionParser): if self.options.static: - batch = salt.cli.batch.Batch(self.config, quiet=True) + ...
enable eauth during cli batch operations
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ dev_requires = [ 'pytest-sugar>=0.9.1', ] + build_requires + test_requires docs_requires = [ - 'sphinx~=2.0', + 'sphinx~=2.2', 'sphinx-intl', 'sphinx_rtd_theme>=0.4.3', 'sphinxcontrib...
docs: Update sphinx version
py
diff --git a/baselines/run.py b/baselines/run.py index <HASH>..<HASH> 100644 --- a/baselines/run.py +++ b/baselines/run.py @@ -21,9 +21,19 @@ try: except ImportError: MPI = None +try: + import pybullet_envs +except ImportError: + pybullet_envs = None + +try: + import roboschool +except ImportError: + ...
install roboschool in install.py (#<I>) * putting instructions from README.md into a script * install roboschool as a part of setup.py * install roboschool from install.py * export pkg_config_path * remove compilation step from roboschool/setup.py * removed roboschool install from games install due to e...
py
diff --git a/disposable_email_checker/validators.py b/disposable_email_checker/validators.py index <HASH>..<HASH> 100644 --- a/disposable_email_checker/validators.py +++ b/disposable_email_checker/validators.py @@ -34,7 +34,7 @@ class DisposableEmailChecker(): if domain_part not in self.whitelist: ...
Include @lfrodrigues regex fix (Issue #8)
py
diff --git a/pipdate/main.py b/pipdate/main.py index <HASH>..<HASH> 100644 --- a/pipdate/main.py +++ b/pipdate/main.py @@ -162,13 +162,21 @@ def _get_message(name, iv, uv, semantic_versioning): # GRAY241 = "\033[38;5;241m" + if sys.stdout.encoding == "UTF-8": + right_arrow = "\u2192" + ...
better compatibility with non-utf8 terminals
py
diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py index <HASH>..<HASH> 100644 --- a/salt/modules/mysql.py +++ b/salt/modules/mysql.py @@ -3,6 +3,7 @@ Module to provide MySQL compatibility to salt. :depends: - MySQLdb Python module +.. note:: On CentOS 5 (and possibly RHEL 5) both MySQL-python and python2...
Added note to docs about the need for python<I>-mysqldb as well as MySQL-Python for CentOS 5
py
diff --git a/theanets/main.py b/theanets/main.py index <HASH>..<HASH> 100644 --- a/theanets/main.py +++ b/theanets/main.py @@ -9,7 +9,6 @@ import datetime import os import sys import theano.tensor as TT -import warnings from . import dataset from . import graph @@ -127,12 +126,6 @@ class Experiment: s...
Remove deprecation warnings for old features.
py
diff --git a/sharepa/__init__.py b/sharepa/__init__.py index <HASH>..<HASH> 100644 --- a/sharepa/__init__.py +++ b/sharepa/__init__.py @@ -1,3 +1,2 @@ from sharepa.search import ShareSearch, basic_search # noqa from sharepa.analysis import bucket_to_dataframe, merge_dataframes # noqa -from sharepa.helpers import so...
Remove helper functions from sharepa init
py
diff --git a/djstripe/admin/admin.py b/djstripe/admin/admin.py index <HASH>..<HASH> 100644 --- a/djstripe/admin/admin.py +++ b/djstripe/admin/admin.py @@ -654,7 +654,7 @@ class SubscriptionScheduleAdmin(StripeModelAdmin): @admin.register(models.TaxCode) class TaxCodeAdmin(StripeModelAdmin): - list_display = ("na...
Added description model field to TaxCodeAdmin
py
diff --git a/segno/writers.py b/segno/writers.py index <HASH>..<HASH> 100644 --- a/segno/writers.py +++ b/segno/writers.py @@ -91,8 +91,6 @@ def writable(file_or_path, mode, encoding=None): must_close = True try: yield f - except: - raise finally: if must_close: ...
Simplified writable
py
diff --git a/spacy/tests/test_matcher.py b/spacy/tests/test_matcher.py index <HASH>..<HASH> 100644 --- a/spacy/tests/test_matcher.py +++ b/spacy/tests/test_matcher.py @@ -87,6 +87,13 @@ def test_match_zero_plus(matcher): assert len(matcher(doc)) == 1 +def test_phrase_matcher(): + vocab = Vocab(lex_attr_gett...
Add basic test for PhraseMatcher #<I>
py
diff --git a/openquake/hazardlib/gsim/base.py b/openquake/hazardlib/gsim/base.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/gsim/base.py +++ b/openquake/hazardlib/gsim/base.py @@ -477,9 +477,7 @@ class GroundShakingIntensityModel(object): site_collection.mesh, with_depths=False ...
fix bug in base.py, for rcdpp
py
diff --git a/discord/state.py b/discord/state.py index <HASH>..<HASH> 100644 --- a/discord/state.py +++ b/discord/state.py @@ -124,7 +124,7 @@ class ConnectionState: def _add_server_from_data(self, guild): server = Server(**guild) - server.me = server.get_member(self.user.id) + Server.me =...
Server.me is now a dynamic property to avoid outdated references.
py
diff --git a/src/scs_core/estate/baseline_conf.py b/src/scs_core/estate/baseline_conf.py index <HASH>..<HASH> 100644 --- a/src/scs_core/estate/baseline_conf.py +++ b/src/scs_core/estate/baseline_conf.py @@ -82,6 +82,18 @@ class BaselineConf(MultiPersistentJSONable): # --------------------------------------------...
Added "duplicate" function to BaselineConf
py
diff --git a/sentry/client/handlers.py b/sentry/client/handlers.py index <HASH>..<HASH> 100644 --- a/sentry/client/handlers.py +++ b/sentry/client/handlers.py @@ -15,6 +15,7 @@ class SentryHandler(logging.Handler): print >> sys.stderr, record.message return + self.format(record) ...
make sure log record is formatted without this, or another handler in the chain doing the formatting, this gives an error: "AttributeError: LogRecord instance has no attribute 'message'"
py
diff --git a/examples/gen_ooaofooa_schema.py b/examples/gen_ooaofooa_schema.py index <HASH>..<HASH> 100644 --- a/examples/gen_ooaofooa_schema.py +++ b/examples/gen_ooaofooa_schema.py @@ -74,6 +74,9 @@ def main(): logger.info('Filtering %s' % o_obj.Key_Lett) for r_rel in many(o_obj).R_OIR[201].R_REL[20...
ooaofooa schema gen: unrelate R_REL from R_OIR during filtering
py
diff --git a/src/dolo/misc/matlab.py b/src/dolo/misc/matlab.py index <HASH>..<HASH> 100644 --- a/src/dolo/misc/matlab.py +++ b/src/dolo/misc/matlab.py @@ -73,7 +73,11 @@ def value_to_mat(v): elif isinstance(v,sympy.Matrix): return '[%s]' %v.__repr__().replace('\n',';').replace(',',' ') elif str(v.__c...
Fixed compilation of multidimensional arrays to matlab string.
py
diff --git a/msm/skill_state.py b/msm/skill_state.py index <HASH>..<HASH> 100644 --- a/msm/skill_state.py +++ b/msm/skill_state.py @@ -1,23 +1,24 @@ """ Functions related to manipulating the skills_data.json """ - import json +from logging import getLogger from os.path import expanduser, isfile +LOG = getLog...
refactored code that loads device skill state to be more testable.
py
diff --git a/contact_form/__init__.py b/contact_form/__init__.py index <HASH>..<HASH> 100644 --- a/contact_form/__init__.py +++ b/contact_form/__init__.py @@ -1,4 +1,4 @@ -VERSION = (0, 3, 4, 'stable') +VERSION = (0, 3, 5, 'dev') def get_release():
running on <I>-dev
py
diff --git a/kafka/conn.py b/kafka/conn.py index <HASH>..<HASH> 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -354,7 +354,7 @@ class BrokerConnection(object): next_lookup = self._next_afi_sockaddr() if not next_lookup: self.close(Errors.KafkaConnectionError('DNS failure'))...
Return connection state explicitly after close in connect() (#<I>)
py
diff --git a/andes/models/renewable/regca1.py b/andes/models/renewable/regca1.py index <HASH>..<HASH> 100644 --- a/andes/models/renewable/regca1.py +++ b/andes/models/renewable/regca1.py @@ -188,9 +188,13 @@ class REGCA1Model(Model): tex_name='L_{VG}', ) + ...
Safeguard for `LVG_y` = 0.
py
diff --git a/wpull/document.py b/wpull/document.py index <HASH>..<HASH> 100644 --- a/wpull/document.py +++ b/wpull/document.py @@ -9,12 +9,6 @@ import wpull.util import wpull.http.util -try: - abstractclassmethod = abc.abstractclassmethod -except AttributeError: - abstractclassmethod = lambda f: f - - class...
document.py: Uses plain classmethod decorator to fix docstring.
py
diff --git a/tests/test_procar.py b/tests/test_procar.py index <HASH>..<HASH> 100644 --- a/tests/test_procar.py +++ b/tests/test_procar.py @@ -129,6 +129,8 @@ class ProcarTestCase( unittest.TestCase ): self.assertEqual( combined_pcar.number_of_k_points, 4 ) np.testing.assert_equal( combined_pcar.occup...
Adding k_point addition unit test
py
diff --git a/discord/voice_client.py b/discord/voice_client.py index <HASH>..<HASH> 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -253,10 +253,12 @@ class VoiceClient: if not self._connected.is_set(): return - self.socket.close() self._connected.clear() - ...
Make sure the socket is closed when we call VoiceClient.disconnect
py
diff --git a/tests/test_filters.py b/tests/test_filters.py index <HASH>..<HASH> 100644 --- a/tests/test_filters.py +++ b/tests/test_filters.py @@ -281,3 +281,9 @@ def test_triangulate(): tri = data.triangulate() assert isinstance(tri, vtki.UnstructuredGrid) assert np.any(tri.cells) + + +def test_delaunay...
Test delaunay_3d filter
py
diff --git a/src/scs_core/psu/psu.py b/src/scs_core/psu/psu.py index <HASH>..<HASH> 100644 --- a/src/scs_core/psu/psu.py +++ b/src/scs_core/psu/psu.py @@ -57,6 +57,13 @@ class PSU(ABC): # ---------------------------------------------------------------------------------------------------------------- @abstra...
Added support for I2C PSUs to psu.py
py
diff --git a/kafka/producer/base.py b/kafka/producer/base.py index <HASH>..<HASH> 100644 --- a/kafka/producer/base.py +++ b/kafka/producer/base.py @@ -29,7 +29,7 @@ log = logging.getLogger("kafka") BATCH_SEND_DEFAULT_INTERVAL = 20 BATCH_SEND_MSG_COUNT = 20 BATCH_RETRY_OPTIONS = RetryOptions( - limit=0, backoff_ms...
Disable retry on timeouts by default (old behaviour)
py
diff --git a/alot/command.py b/alot/command.py index <HASH>..<HASH> 100644 --- a/alot/command.py +++ b/alot/command.py @@ -101,7 +101,7 @@ class SearchCommand(Command): def apply(self, ui): if self.query: - if self.query == '*': + if self.query == '*' and ui.current_buffer: ...
fix: issue with initial searches for * for the searchstring '*' an orly? prompt is hardcoded as these tend to take long. Prompts don't work if the ui is not properly set up.
py
diff --git a/tests/basics/struct1.py b/tests/basics/struct1.py index <HASH>..<HASH> 100644 --- a/tests/basics/struct1.py +++ b/tests/basics/struct1.py @@ -62,6 +62,12 @@ try: except TypeError: print('TypeError') +# make sure that unknown types are detected +try: + struct.pack("z", 1) +except: + print("Unk...
tests/struct1: Add testcase for an unknown type char.
py
diff --git a/great_expectations/data_context/datasource/sqlalchemy_source.py b/great_expectations/data_context/datasource/sqlalchemy_source.py index <HASH>..<HASH> 100644 --- a/great_expectations/data_context/datasource/sqlalchemy_source.py +++ b/great_expectations/data_context/datasource/sqlalchemy_source.py @@ -41,6 ...
Provide add_query method for sqlalchemy source
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,10 @@ import optimize_upip setup(name='picoweb', - version='1.2.1', + version='1.2.2', description="""A very lightweight, memory-efficient async web framework for MicroPython.org and its uasyncio...
setup.py: Mention that more docs are on Github.
py
diff --git a/salt/cloud/clouds/profitbricks.py b/salt/cloud/clouds/profitbricks.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/profitbricks.py +++ b/salt/cloud/clouds/profitbricks.py @@ -78,6 +78,7 @@ import time # Import salt libs import salt.utils import salt.config as config +import salt.ext.six as six f...
Use six.iteritems instead of iteritems() in profitbricks driver
py
diff --git a/tests/test_web.py b/tests/test_web.py index <HASH>..<HASH> 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -937,10 +937,10 @@ class TestWeb(object): return_data = json.loads(response.data) logs = return_data['logs'] assert len(logs) == 1, logs - log = logs[0] - ...
Don't redefine name "log" from outer scope
py
diff --git a/param/__init__.py b/param/__init__.py index <HASH>..<HASH> 100644 --- a/param/__init__.py +++ b/param/__init__.py @@ -21,7 +21,6 @@ __version__='$Revision$' import os.path -from numpy import ndarray from parameterized import Parameterized, Parameter, String, \ descendents, ParameterizedFunction...
Moved numpy array inside param.Array so that param does not depend on numpy.
py
diff --git a/pyphi/actual.py b/pyphi/actual.py index <HASH>..<HASH> 100644 --- a/pyphi/actual.py +++ b/pyphi/actual.py @@ -376,7 +376,7 @@ class Context: if config.PARTITION_MECHANISMS: # In the case of tie, chose the mip with smallest purview. # (The default behavior is t...
Use `alpha` in comparison
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -181,7 +181,8 @@ setup_params = dict( tests_require=[ 'setuptools[ssl]', 'pytest-flake8', - 'pytest>=3.0.2', + # pin pytest to 3.0.2 for pytest-dev/pytest#1888 + 'pytest==3.0.2', ...
Pin to Pytest <I> as it appears <I> re-introduces pytest-dev/pytest#<I>.
py
diff --git a/apio/managers/drivers.py b/apio/managers/drivers.py index <HASH>..<HASH> 100644 --- a/apio/managers/drivers.py +++ b/apio/managers/drivers.py @@ -234,7 +234,7 @@ class Drivers(object): # pragma: no cover subprocess.call(['sudo', 'kextload', '-b', self.driverC]) def _check_ftdi_driv...
Fix upload command for Py3 in Mac
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100755 --- a/tests.py +++ b/tests.py @@ -240,6 +240,10 @@ class DNSTest(unittest.TestCase): expected = '4.3.2.1.in-addr.arpa' self.assertEqual(pycares.reverse_address(s), expected) + s = '2607:f8b0:4010:801::1013' + expected = '3.1....
tests.py: test reverse_address on IPv6 also
py
diff --git a/fundamentals/mysql/writequery.py b/fundamentals/mysql/writequery.py index <HASH>..<HASH> 100644 --- a/fundamentals/mysql/writequery.py +++ b/fundamentals/mysql/writequery.py @@ -105,7 +105,7 @@ def writequery( dbConn.commit() if len(thisList) < batch: ...
fixing deadlocks - try again
py
diff --git a/tests/settings.py b/tests/settings.py index <HASH>..<HASH> 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -126,10 +126,6 @@ INSTALLED_APPS = ( MIGRATION_MODULES = { - 'cms': 'cms.migrations_django', - 'menus': 'menus.migrations_django', - - # Add also the following modules if you'r...
Removing cms migrations modules settings.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,19 @@ # The Logrus # -# Author: Joe Block <jpb@unixorn.net> -# License: Apache 2.0 +# Copyright 2015 Joe Block <jpb@unixorn.net> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not us...
Update license text in setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import io +import sys import setuptools @@ -9,6 +10,9 @@ with io.open('README.txt', encoding='utf-8'...
Conditionally require pytest-runner.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def read(*rnames): setup( name="djangosaml2", - version="1.4.0", + version="1.5.0", description="pysaml2 integration for Django", long_description=read("README.md"), long_description...
bumped version to <I>
py
diff --git a/jsonschema/cli.py b/jsonschema/cli.py index <HASH>..<HASH> 100644 --- a/jsonschema/cli.py +++ b/jsonschema/cli.py @@ -24,7 +24,6 @@ class CliOutputWriter(): "Failed to parse {file_name}. " "Got the following error: {exception}\n" ) - PLAIN_ERROR_MSG = "{error.instance}: {error.mes...
[CLI] Add newline at end of oneline error
py
diff --git a/ibis/backends/pandas/execution/structs.py b/ibis/backends/pandas/execution/structs.py index <HASH>..<HASH> 100644 --- a/ibis/backends/pandas/execution/structs.py +++ b/ibis/backends/pandas/execution/structs.py @@ -15,9 +15,12 @@ def execute_node_struct_field_dict(op, data, **kwargs): return data[op.fi...
chore(pandas): handle None, pd.NA and NaN in a single function
py
diff --git a/mediasync/backends/s3.py b/mediasync/backends/s3.py index <HASH>..<HASH> 100644 --- a/mediasync/backends/s3.py +++ b/mediasync/backends/s3.py @@ -94,7 +94,8 @@ class Client(BaseClient): key = Key(self._bucket) key.key = remote_path - if force or key.get_metadata('...
custom metadata is being url decoded
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ except ImportError: setup( name='eventsourcing', - version='1.0.5', + version='1.0.6', description='Event sourcing in Python', author='John Bywater', author_email='john.bywater@appropr...
Increased version of distribution to <I>.
py
diff --git a/parsl/dataflow/futures.py b/parsl/dataflow/futures.py index <HASH>..<HASH> 100644 --- a/parsl/dataflow/futures.py +++ b/parsl/dataflow/futures.py @@ -36,9 +36,6 @@ class AppFuture(Future): We are simply wrapping a AppFuture, and adding the specific case where, if the future is resolved i.e file e...
Fixing issue with error handling in parent_callback for delayed apps
py
diff --git a/django_q/tests/test_brokers.py b/django_q/tests/test_brokers.py index <HASH>..<HASH> 100644 --- a/django_q/tests/test_brokers.py +++ b/django_q/tests/test_brokers.py @@ -4,6 +4,7 @@ import os import redis from django_q.conf import Conf from django_q.brokers import get_broker, Broker +from django_q.human...
random queue names for ironmq test
py
diff --git a/src/transformers/models/longformer/modeling_longformer.py b/src/transformers/models/longformer/modeling_longformer.py index <HASH>..<HASH> 100755 --- a/src/transformers/models/longformer/modeling_longformer.py +++ b/src/transformers/models/longformer/modeling_longformer.py @@ -1861,7 +1861,7 @@ class Longf...
Fix the hub user name in a longformer doctest checkpoint (#<I>)
py
diff --git a/kaggler/ensemble/linear.py b/kaggler/ensemble/linear.py index <HASH>..<HASH> 100755 --- a/kaggler/ensemble/linear.py +++ b/kaggler/ensemble/linear.py @@ -4,6 +4,8 @@ import numpy as np def netflix(es, ps, e0, l=.0001): """Combine predictions with the optimal weights to minimize RMSE. + Ref: Tösc...
add reference to ensemble.linear.netflix
py