diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/elasticsearch/transport.py b/elasticsearch/transport.py index <HASH>..<HASH> 100644 --- a/elasticsearch/transport.py +++ b/elasticsearch/transport.py @@ -222,7 +222,7 @@ class Transport(object): if attempt == self.max_retries: raise else: - ...
clarify comment, we now mark all connections as live on success
py
diff --git a/spikeextractors/extractors/neuroscopesortingextractor/neuroscopesortingextractor.py b/spikeextractors/extractors/neuroscopesortingextractor/neuroscopesortingextractor.py index <HASH>..<HASH> 100644 --- a/spikeextractors/extractors/neuroscopesortingextractor/neuroscopesortingextractor.py +++ b/spikeextracto...
Fixed resfile naming issue
py
diff --git a/asset/resource.py b/asset/resource.py index <HASH>..<HASH> 100644 --- a/asset/resource.py +++ b/asset/resource.py @@ -279,6 +279,21 @@ def load(pattern, *args, **kws): return Asset(group, pkgname, pkgpat) #------------------------------------------------------------------------------ +def exists(patt...
added top-level `exists` helper method
py
diff --git a/topgg/http.py b/topgg/http.py index <HASH>..<HASH> 100644 --- a/topgg/http.py +++ b/topgg/http.py @@ -82,7 +82,10 @@ class HTTPClient: self.token = token self.loop = kwargs.get("loop") or asyncio.get_event_loop() self.session = kwargs.get("session") or aiohttp.ClientSession(loop=...
Introduce global ratelimiter along with bot ratelimiter
py
diff --git a/quart/wrappers/request.py b/quart/wrappers/request.py index <HASH>..<HASH> 100644 --- a/quart/wrappers/request.py +++ b/quart/wrappers/request.py @@ -177,8 +177,8 @@ class Request(BaseRequestWebsocket, JSONMixin): for key in field_storage: # type: ignore field_storage_key = f...
Bugfix multipart form parsing field storage usage The previous version would add FieldStorage objects, rather than the value of the FieldStorage object into the form data. It also corrects the unnecessary and hack looking value extraction.
py
diff --git a/web3/contract.py b/web3/contract.py index <HASH>..<HASH> 100644 --- a/web3/contract.py +++ b/web3/contract.py @@ -299,7 +299,6 @@ class Contract: ) return ContractConstructor(cls.web3, - cls.address, cls.abi, ...
Remove address relevant code from Constructor class.
py
diff --git a/parsl/execution_provider/provider_factory.py b/parsl/execution_provider/provider_factory.py index <HASH>..<HASH> 100644 --- a/parsl/execution_provider/provider_factory.py +++ b/parsl/execution_provider/provider_factory.py @@ -19,7 +19,7 @@ from parsl.execution_provider.aws.aws import EC2Provider from pars...
Updating for moving ssh-cl from pipes to channels dir
py
diff --git a/signalfx/signalflow/computation.py b/signalfx/signalflow/computation.py index <HASH>..<HASH> 100644 --- a/signalfx/signalflow/computation.py +++ b/signalfx/signalflow/computation.py @@ -20,6 +20,7 @@ class Computation(object): self._stream = None self._state = Computation.STATE_UNKNOWN ...
Accumulate number of input timeseries from FETCH_NUM_TIMESERIES messages
py
diff --git a/transducer/eager.py b/transducer/eager.py index <HASH>..<HASH> 100644 --- a/transducer/eager.py +++ b/transducer/eager.py @@ -6,7 +6,7 @@ from transducer.infrastructure import Reduced def transduce(transducer, reducer, iterable, init=UNSET): r = transducer(reducer) - accumulator = reducer.initia...
Call initial() on the transformed reducer rather than on the 'bottom' reducer.
py
diff --git a/nhe/mfd/truncated_gr.py b/nhe/mfd/truncated_gr.py index <HASH>..<HASH> 100644 --- a/nhe/mfd/truncated_gr.py +++ b/nhe/mfd/truncated_gr.py @@ -51,11 +51,11 @@ class TruncatedGR(BaseMFD): """ Checks the following constraints: - * Bin width is greater than 0 and less than 1.4. + ...
mfd/truncated_gr: fixed a mistake in doc don't write docs in a haste, dudes
py
diff --git a/mmcv/runner/checkpoint.py b/mmcv/runner/checkpoint.py index <HASH>..<HASH> 100644 --- a/mmcv/runner/checkpoint.py +++ b/mmcv/runner/checkpoint.py @@ -245,5 +245,6 @@ def save_checkpoint(model, filename, optimizer=None, meta=None): } if optimizer is not None: checkpoint['optimizer'] = opt...
flush buffer when saving model (#<I>)
py
diff --git a/rinoh/structure.py b/rinoh/structure.py index <HASH>..<HASH> 100644 --- a/rinoh/structure.py +++ b/rinoh/structure.py @@ -160,8 +160,8 @@ class HeaderStyle(ParagraphStyle): class Header(Paragraph): style_class = HeaderStyle - def __init__(self, id=None, style=None, parent=None): - text = ...
Allow overriding the Header and Footer text
py
diff --git a/glue/pipeline.py b/glue/pipeline.py index <HASH>..<HASH> 100644 --- a/glue/pipeline.py +++ b/glue/pipeline.py @@ -835,7 +835,7 @@ class CondorDAG: <argument>%s </argument>\ """ - xml = template % (id_tag, executable, node_name, cmd_line) + xml = template % (id_tag, os.path.basena...
basename the execulatble
py
diff --git a/tensor2tensor/rl/rl_trainer_lib.py b/tensor2tensor/rl/rl_trainer_lib.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/rl/rl_trainer_lib.py +++ b/tensor2tensor/rl/rl_trainer_lib.py @@ -58,8 +58,11 @@ def define_train(hparams, environment_spec, event_dir): with tf.variable_scope("eval"): eval_env_l...
Adjustment for envs with semantics.autoreset.
py
diff --git a/tika/tika.py b/tika/tika.py index <HASH>..<HASH> 100755 --- a/tika/tika.py +++ b/tika/tika.py @@ -543,7 +543,6 @@ def callServer(verb, serverEndpoint, service, data, headers, verbose=Verbose, ti effectiveRequestOptions.update(requestOptions) resp = verbFn(serviceUrl, encodedData, **effectiveReq...
Remove closing on bytes Actually as the callServer get's the reader from the parent, the parent should be responsible for closing it. If the caller needs to have the file opened less time it should manage the read itself and after that call callServer with bytes directly in my opinion.
py
diff --git a/djournal/feeds.py b/djournal/feeds.py index <HASH>..<HASH> 100644 --- a/djournal/feeds.py +++ b/djournal/feeds.py @@ -11,6 +11,10 @@ from taggit.models import Tag from djournal.models import Entry class EntryFeed(Feed): + + title_template = 'djournal/feeds/entry_feed_item_title.html' + descriptio...
Add templates for individual items in the feeds. * If templates are not present; * Entry's title will be used as item's title. * Entry's teaser will be used as item's description. Useful for adding extra content, such as "read-more" links.
py
diff --git a/clif/conf.py b/clif/conf.py index <HASH>..<HASH> 100644 --- a/clif/conf.py +++ b/clif/conf.py @@ -7,6 +7,7 @@ import yamlordereddictloader import clif.logger as logger from . import CliError, hooks from pprint import pformat +from collections import OrderedDict _SELF = sys.modules[__name__] @@ -46,...
Replace '__FILE__' with the path of the main program in configuration files.
py
diff --git a/salt/states/mysql_grants.py b/salt/states/mysql_grants.py index <HASH>..<HASH> 100644 --- a/salt/states/mysql_grants.py +++ b/salt/states/mysql_grants.py @@ -49,7 +49,7 @@ def __virtual__(): ''' Only load if the mysql module is available ''' - return 'mysql_grants' if 'mysql.grant_exists'...
Not renaming, return a boolean in `__virtual__()`.
py
diff --git a/treetime/treetime.py b/treetime/treetime.py index <HASH>..<HASH> 100644 --- a/treetime/treetime.py +++ b/treetime/treetime.py @@ -825,7 +825,7 @@ class TreeTime(ClockTree): 'ndiff' : ndiff, 'n_resolved' : n_resolved, 'seq_mode' : 'marginal' if sequence_marginal...
fix: check for presence of alignment before requesting sequence LH in trace log
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -114,7 +114,7 @@ class Mock(object): #sys.path.append("../GPy") #import mock -MOCK_MODULES = ['pylab', 'matplotlib', 'sympy', 'sympy.utilities', 'sympy.utilities.codegen', 'sympy.core.cache']#'matplotlib', 'mat...
Added sympy.core
py
diff --git a/ipyrad/assemble/rawedit.py b/ipyrad/assemble/rawedit.py index <HASH>..<HASH> 100644 --- a/ipyrad/assemble/rawedit.py +++ b/ipyrad/assemble/rawedit.py @@ -483,11 +483,12 @@ def run_sample(data, sample, nreplace, preview, ipyclient): for tmpdir in tmpdirs: shutil.rmtree(tmpdir) ...
added a conditional to test for preview mode before removing the sample_fastq files, since if we aren't in preview mode these are the real sample fastqs.
py
diff --git a/Lib/fontmake/font_project.py b/Lib/fontmake/font_project.py index <HASH>..<HASH> 100644 --- a/Lib/fontmake/font_project.py +++ b/Lib/fontmake/font_project.py @@ -131,20 +131,25 @@ class FontProject(object): designspace = glyphsLib.to_designspace( font, family_name=family_name, instanc...
only save designspace sources with the same filename (different layer) once
py
diff --git a/tests/integration/modules/test_virt.py b/tests/integration/modules/test_virt.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/test_virt.py +++ b/tests/integration/modules/test_virt.py @@ -101,3 +101,14 @@ class VirtTest(ModuleCase): self.assertIsInstance(caps["host"]["host"]["uuid"],...
Add virt.capabilities integration test
py
diff --git a/examples/nexrad/nexrad_copy.py b/examples/nexrad/nexrad_copy.py index <HASH>..<HASH> 100644 --- a/examples/nexrad/nexrad_copy.py +++ b/examples/nexrad/nexrad_copy.py @@ -106,7 +106,7 @@ logger.info('ref_data.shape: {}'.format(ref_data.shape)) # https://stackoverflow.com/questions/7222382/get-lat-long-give...
Use bearing function parameter instead of az The function was working by coincidence but it was using a global variable. Fix it by using the parameter `bearing` passed to it. Thanks to Goizueta, the reviewer :)
py
diff --git a/src/collectors/postgres/postgres.py b/src/collectors/postgres/postgres.py index <HASH>..<HASH> 100644 --- a/src/collectors/postgres/postgres.py +++ b/src/collectors/postgres/postgres.py @@ -138,6 +138,9 @@ class QueryStats(object): 'value': value, }) ...
Only query for a single db when multi_db is False
py
diff --git a/databasetools/csv.py b/databasetools/csv.py index <HASH>..<HASH> 100644 --- a/databasetools/csv.py +++ b/databasetools/csv.py @@ -34,7 +34,7 @@ class CSV: def resolve_path(file_path, calling_function): """ - Conditionally set a file path. + Conditionally set a path to a CSV file. Optio...
Modified resolve_path function to force the file_path to end in '.csv'
py
diff --git a/LiSE/LiSE/engine.py b/LiSE/LiSE/engine.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/engine.py +++ b/LiSE/LiSE/engine.py @@ -1541,9 +1541,6 @@ class Engine(AbstractEngine, gORM): ekv = (entity, k, v) parcel = (turn, entity, k, v) val = validat...
Handle falsy validation results last Basically just saves me a ``continue`` I think, but also a little more readable?
py
diff --git a/pyhaversion/__init__.py b/pyhaversion/__init__.py index <HASH>..<HASH> 100644 --- a/pyhaversion/__init__.py +++ b/pyhaversion/__init__.py @@ -83,7 +83,10 @@ class DockerVersion(Version): if data is None: url = URL["docker"].format(IMAGES[self.image]["docker"]) ...
Handle None for data in docker
py
diff --git a/tests/runners.py b/tests/runners.py index <HASH>..<HASH> 100644 --- a/tests/runners.py +++ b/tests/runners.py @@ -126,5 +126,5 @@ class Remote_: chan = remote.expect() c = _Connection("host") r = Remote(context=c) - r.run(CMD, pty=True, env={"FOO": "bar"}) ...
Not sure why this pty=True was here
py
diff --git a/bl/string.py b/bl/string.py index <HASH>..<HASH> 100644 --- a/bl/string.py +++ b/bl/string.py @@ -51,6 +51,10 @@ class String(str): else: return h.hexdigest() + def base64(self): + import base64 as b64 + return b64.urlsafe_b64encode(bytes(self, encoding='utf-8'...
String.base<I>() is now a thing
py
diff --git a/discord/audit_logs.py b/discord/audit_logs.py index <HASH>..<HASH> 100644 --- a/discord/audit_logs.py +++ b/discord/audit_logs.py @@ -29,6 +29,7 @@ from .object import Object from .permissions import PermissionOverwrite, Permissions from .colour import Colour from .invite import Invite +from .mixins imp...
Allow AuditLogEntry to be Hashable
py
diff --git a/django_q/models.py b/django_q/models.py index <HASH>..<HASH> 100644 --- a/django_q/models.py +++ b/django_q/models.py @@ -3,6 +3,7 @@ try: from django.urls import reverse except ImportError: # Django < 1.10 from django.core.urlresolvers import reverse +from django.utils.html import format_html ...
Fix urls being escaped by admin
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -42,6 +42,12 @@ setup( version=get_version(), description="Logging as Storytelling", install_requires=["six", "zope.interface"], + extras_require={ + "dev": [ + # Allows us to measure code c...
Add coverage as optional dev requirement.
py
diff --git a/tests/test_local.py b/tests/test_local.py index <HASH>..<HASH> 100644 --- a/tests/test_local.py +++ b/tests/test_local.py @@ -27,3 +27,21 @@ class TestMemorize: cached.clear_cachelper_cache() cached(10) assert func.call_count == 2 + + def test_can_decorate_method(self, mocker)...
Add test to make sure memoize works for methods
py
diff --git a/malcolm/modules/ADPandABlocks/seqgenerator.py b/malcolm/modules/ADPandABlocks/seqgenerator.py index <HASH>..<HASH> 100644 --- a/malcolm/modules/ADPandABlocks/seqgenerator.py +++ b/malcolm/modules/ADPandABlocks/seqgenerator.py @@ -323,7 +323,10 @@ class RowsGenerator(object): if not self.axis...
Fix rows with no axis_mapping in pandaseqtrigger
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup(name="tweepy", license="MIT", author="Joshua Roesslein", author_email="tweepy@googlegroups.com", - url="http://github.com/joshthecoder/tweepy", + url="http://github.com/tweepy/...
Edited setup.py via GitHub
py
diff --git a/tests/functional/tests.py b/tests/functional/tests.py index <HASH>..<HASH> 100755 --- a/tests/functional/tests.py +++ b/tests/functional/tests.py @@ -181,6 +181,10 @@ def test_make_bucket_with_region(client, log_output): # default value for log_output.function attribute is; # log_output.function ...
tests: Avoid running regional make bucket if not AWS S3 (#<I>)
py
diff --git a/salt/utils/ssdp.py b/salt/utils/ssdp.py index <HASH>..<HASH> 100644 --- a/salt/utils/ssdp.py +++ b/salt/utils/ssdp.py @@ -380,12 +380,12 @@ class SSDPDiscoveryClient(SSDPBase): :return: ''' - self.log.info("Looking for a server discovery") response = {} - try: - ...
Bugfix for refactoring: the exception was never raised anyway
py
diff --git a/salt/modules/upstart.py b/salt/modules/upstart.py index <HASH>..<HASH> 100644 --- a/salt/modules/upstart.py +++ b/salt/modules/upstart.py @@ -291,7 +291,7 @@ def missing(name): salt '*' service.missing sshd ''' - return not name in get_all() + return name not in get_all() def get...
Fix PEP8 E<I> - test for membership should be "not in"
py
diff --git a/py/makeversionhdr.py b/py/makeversionhdr.py index <HASH>..<HASH> 100644 --- a/py/makeversionhdr.py +++ b/py/makeversionhdr.py @@ -57,7 +57,7 @@ def get_version_info_from_git(): return git_tag, git_hash, ver def get_version_info_from_docs_conf(): - with open("%s/docs/conf.py" % sys.argv[0].rsplit...
py/makeversionhdr.py: Work with backslashes in paths. This script may be called by Windows IDEs (e.g. Visual Studio) and be passed paths with backslashes.
py
diff --git a/tests/t_cqparts/test_display.py b/tests/t_cqparts/test_display.py index <HASH>..<HASH> 100644 --- a/tests/t_cqparts/test_display.py +++ b/tests/t_cqparts/test_display.py @@ -98,3 +98,17 @@ class WebTests(CQPartsTest): def test_bad_component(self): with self.assertRaises(TypeError): ...
added cqparts_server unit test
py
diff --git a/ci/travis/build-docker-images.py b/ci/travis/build-docker-images.py index <HASH>..<HASH> 100644 --- a/ci/travis/build-docker-images.py +++ b/ci/travis/build-docker-images.py @@ -384,7 +384,7 @@ if __name__ == "__main__": build_ray_ml() if build_type in {MERGE, PR}: # Skipping push on b...
fix docker build (#<I>)
py
diff --git a/tests/test_qrcode.py b/tests/test_qrcode.py index <HASH>..<HASH> 100644 --- a/tests/test_qrcode.py +++ b/tests/test_qrcode.py @@ -64,7 +64,7 @@ def test_invalid_mode_provided(): def test_binary_data(): - qr = pyqrcode.create('Märchenbuch'.encode('utf-8')) + qr = pyqrcode.create('Märchenbuch'.enc...
Fixed binary data test to use utf-8 encoding
py
diff --git a/test/test_vimball.py b/test/test_vimball.py index <HASH>..<HASH> 100644 --- a/test/test_vimball.py +++ b/test/test_vimball.py @@ -46,13 +46,13 @@ def is_vimball(): with NamedTemporaryFile() as tmpfile: tmpfile.write(b'bad archive') tmpfile.flush() - assert is_vimball(tmpfile.n...
simplify is_vimball test assertions
py
diff --git a/andes/filters/dome.py b/andes/filters/dome.py index <HASH>..<HASH> 100644 --- a/andes/filters/dome.py +++ b/andes/filters/dome.py @@ -97,7 +97,6 @@ def read(file, system, header=True): if not os.path.isfile(newpath): raise FileNotFoundError( 'U...
fix dome dump error caused by list separator ","
py
diff --git a/rfc5424logging/handler.py b/rfc5424logging/handler.py index <HASH>..<HASH> 100644 --- a/rfc5424logging/handler.py +++ b/rfc5424logging/handler.py @@ -131,8 +131,8 @@ class Rfc5424SysLogHandler(Handler): As an alternative transport, you can also provide a stream Args: - addres...
Enable the address in the form of a [host, port] list (#<I>)
py
diff --git a/cassandra/__init__.py b/cassandra/__init__.py index <HASH>..<HASH> 100644 --- a/cassandra/__init__.py +++ b/cassandra/__init__.py @@ -60,6 +60,12 @@ class ConsistencyLevel(object): Requires a quorum of replicas in each datacenter """ + LOCAL_ONE = 10 + """ + Sends a request only to rep...
Add support for ConsistencyLevel LOCAL_ONE Fixes #<I>
py
diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py index <HASH>..<HASH> 100644 --- a/salt/utils/cloud.py +++ b/salt/utils/cloud.py @@ -988,7 +988,7 @@ def deploy_script(host, log.debug('Using {0} as the password'.format(password)) ssh_kwargs['password'] = password - if...
Somebody forgot to change kwargs to ssh_kwargs
py
diff --git a/mrivis/base.py b/mrivis/base.py index <HASH>..<HASH> 100644 --- a/mrivis/base.py +++ b/mrivis/base.py @@ -33,8 +33,12 @@ class SlicePicker(object): to get a n-1 dim array, but appropriate reshaping may need to be performed. view_set : iterable + List of integers selectin...
option to attach an image right after creation [skip ci]
py
diff --git a/topydo/commands/DepCommand.py b/topydo/commands/DepCommand.py index <HASH>..<HASH> 100644 --- a/topydo/commands/DepCommand.py +++ b/topydo/commands/DepCommand.py @@ -142,6 +142,7 @@ class DepCommand(Command): todos = set([self.todolist.todo(arg)]) todos |= set(self.todolist.childr...
Make the input for the printer deterministic by sorting it Otherwise it's hard to test the output when the order differs on every execution.
py
diff --git a/tests/drfr_test_app/views.py b/tests/drfr_test_app/views.py index <HASH>..<HASH> 100644 --- a/tests/drfr_test_app/views.py +++ b/tests/drfr_test_app/views.py @@ -17,7 +17,7 @@ class ExampleItemViewSet( queryset = models.ExampleItem.objects.all() serializer_class = serializers.ExampleItemSeriali...
Rename filter_fields to filterset_fields in viewsets
py
diff --git a/lib/websession_templates.py b/lib/websession_templates.py index <HASH>..<HASH> 100644 --- a/lib/websession_templates.py +++ b/lib/websession_templates.py @@ -105,7 +105,7 @@ class Template: <table> %(html_settings)s </table>""" % { - 'external_user_settings' : _('E...
Changed wording of some output messages.
py
diff --git a/penn/studyspaces.py b/penn/studyspaces.py index <HASH>..<HASH> 100644 --- a/penn/studyspaces.py +++ b/penn/studyspaces.py @@ -1,4 +1,3 @@ -import pytz import requests import datetime @@ -96,10 +95,8 @@ class StudySpaces(object): :type end: str """ range_str = "availability" -...
fix that works with python2
py
diff --git a/ripe/atlas/sagan/__init__.py b/ripe/atlas/sagan/__init__.py index <HASH>..<HASH> 100644 --- a/ripe/atlas/sagan/__init__.py +++ b/ripe/atlas/sagan/__init__.py @@ -8,7 +8,7 @@ from .ssl import SslResult from .traceroute import TracerouteResult def get_version(): - with open("version.txt") as f: + w...
s/.txt//
py
diff --git a/opaque_keys/edx/locations.py b/opaque_keys/edx/locations.py index <HASH>..<HASH> 100644 --- a/opaque_keys/edx/locations.py +++ b/opaque_keys/edx/locations.py @@ -217,6 +217,15 @@ class DeprecatedLocation(BlockUsageLocator): URL_RE = re.compile('^' + URL_RE_SOURCE + '$', re.VERBOSE | re.UNICODE) + ...
Don't allow DeprecatedLocation objects to have versions or branches
py
diff --git a/odl/discr/tensor_ops.py b/odl/discr/tensor_ops.py index <HASH>..<HASH> 100644 --- a/odl/discr/tensor_ops.py +++ b/odl/discr/tensor_ops.py @@ -307,7 +307,22 @@ class PointwiseNorm(PointwiseOperator): ------- deriv : `PointwiseInner` Derivative operator at the given point ``vf`...
MAINT: add checks for non-differentiable situations in pointwise norm
py
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py index <HASH>..<HASH> 100644 --- a/salt/modules/cmdmod.py +++ b/salt/modules/cmdmod.py @@ -1223,14 +1223,16 @@ def exec_code(lang, code, cwd=None): def run_chroot(root, cmd): ''' - Chroot into a directory and run a cmd, this routines calls cmd.run_a...
Fix cmd.run_chroot docstring The CLI example was wrongly referring to it as cmd.chroot_run. This commit also adds a versionadded directive.
py
diff --git a/zipline/pipeline/filters/filter.py b/zipline/pipeline/filters/filter.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/filters/filter.py +++ b/zipline/pipeline/filters/filter.py @@ -500,6 +500,10 @@ class SpecificAssets(Filter): """ A Filter that computes True for a specific set of predetermi...
DOC: Add a sentence with uses for SpecificAssets.
py
diff --git a/demosys/context/sdl2/window.py b/demosys/context/sdl2/window.py index <HASH>..<HASH> 100644 --- a/demosys/context/sdl2/window.py +++ b/demosys/context/sdl2/window.py @@ -87,10 +87,12 @@ class Window(BaseWindow): """ self.width = width self.height = height + self.buffer_...
SDL2: Correct viewport on retina and 4k displays
py
diff --git a/cchecker.py b/cchecker.py index <HASH>..<HASH> 100755 --- a/cchecker.py +++ b/cchecker.py @@ -25,7 +25,8 @@ def main(): parser.add_argument('--verbose', '-v', help="Increase output. May be specified up to three times.", - action="count") + ...
Give --verbose a default Exception printing was comparing a None to an integer otherwise.
py
diff --git a/src/wa_kat/zeo/request_info.py b/src/wa_kat/zeo/request_info.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/zeo/request_info.py +++ b/src/wa_kat/zeo/request_info.py @@ -106,6 +106,16 @@ def _get_req_mapping(): ) +class Progress(namedtuple("Progress", ["done", "base"])): + """ + Progress bar...
#<I>: Added more human-readable progress tracking.
py
diff --git a/ib_insync/ib.py b/ib_insync/ib.py index <HASH>..<HASH> 100644 --- a/ib_insync/ib.py +++ b/ib_insync/ib.py @@ -1041,6 +1041,9 @@ class IB: to keep the bars updated; ``endDateTime`` must be set empty ('') then. chartOptions: Unknown. + timeout: Timeou...
reqHistoricalData timeout improvement
py
diff --git a/ryu/app/gre_tunnel.py b/ryu/app/gre_tunnel.py index <HASH>..<HASH> 100644 --- a/ryu/app/gre_tunnel.py +++ b/ryu/app/gre_tunnel.py @@ -337,7 +337,7 @@ class GRETunnel(app_manager.RyuApp): in_port(TUNNEL) drop (catch-all drop rule) TUNNEL_OUT_TABLE - macth ...
Fix typo in comments in GRE tunnel class gre_tunnel: Fix typo.
py
diff --git a/pyqode/cobol/widgets/code_edit.py b/pyqode/cobol/widgets/code_edit.py index <HASH>..<HASH> 100644 --- a/pyqode/cobol/widgets/code_edit.py +++ b/pyqode/cobol/widgets/code_edit.py @@ -23,7 +23,7 @@ class CobolCodeEdit(api.CodeEdit): return QtGui.QIcon(icons.ICON_MIMETYPE) mimetypes = ['te...
Add support for opening .SCB files (Sql Cobol) See OpenCobolIDE/OpenCobolIDE#<I>
py
diff --git a/alot/db/envelope.py b/alot/db/envelope.py index <HASH>..<HASH> 100644 --- a/alot/db/envelope.py +++ b/alot/db/envelope.py @@ -259,6 +259,9 @@ class Envelope(object): if key and value: # save old one from stack self.add(key, value) # save ...
strip spaces when parsing email headers Otherwise we end up with all the headers having a leading space, leading to weird effect when (for example) refining the subject.
py
diff --git a/mwtab/mwschema.py b/mwtab/mwschema.py index <HASH>..<HASH> 100755 --- a/mwtab/mwschema.py +++ b/mwtab/mwschema.py @@ -111,16 +111,17 @@ subject_schema = Schema( ) subject_sample_factors_schema = Schema( - { - "SUBJECT_SAMPLE_FACTORS": [ - { - "subject_type": str, - ...
Changes schema of `#SUBJECT_SAMPLE_FACTORS` block to reflect Metabolomics Workbench's JSON format.
py
diff --git a/aiogram/utils/json.py b/aiogram/utils/json.py index <HASH>..<HASH> 100644 --- a/aiogram/utils/json.py +++ b/aiogram/utils/json.py @@ -21,13 +21,11 @@ for json_lib in (RAPIDJSON, UJSON): if mode == RAPIDJSON: def dumps(data): - return json.dumps(data, ensure_ascii=False, number_mode=json.NM_N...
Prevent to serialize text as date when rapidjson is used
py
diff --git a/tests/test.py b/tests/test.py index <HASH>..<HASH> 100644 --- a/tests/test.py +++ b/tests/test.py @@ -11,7 +11,7 @@ from os.path import dirname if __name__ == '__main__': here = dirname(__file__) sys.path.insert(0, here+'/..') - suite = unittest.defaultTestLoader.discover(here) + suite = u...
fixing build on Python <I>
py
diff --git a/quantecon/mc_tools.py b/quantecon/mc_tools.py index <HASH>..<HASH> 100644 --- a/quantecon/mc_tools.py +++ b/quantecon/mc_tools.py @@ -50,10 +50,10 @@ class DMarkov(object): Methods ------- - find_stationary_distributions : This method finds stationary + mc_compute_stationary : This method...
MARKOV: Fixed names in docstrings
py
diff --git a/custodian/custodian.py b/custodian/custodian.py index <HASH>..<HASH> 100644 --- a/custodian/custodian.py +++ b/custodian/custodian.py @@ -212,7 +212,7 @@ class Custodian(object): self._run_job(job_n, job) # Checkpoint after each job so that we can recover from last...
Allow custodian to work with generators.
py
diff --git a/dramatiq/rate_limits/barrier.py b/dramatiq/rate_limits/barrier.py index <HASH>..<HASH> 100644 --- a/dramatiq/rate_limits/barrier.py +++ b/dramatiq/rate_limits/barrier.py @@ -66,6 +66,11 @@ class Barrier: Barrier blocking is currently only supported by the stub and Redis backends. + ...
doc: add note about ub w/ barrier keys
py
diff --git a/denonavr/denonavr.py b/denonavr/denonavr.py index <HASH>..<HASH> 100644 --- a/denonavr/denonavr.py +++ b/denonavr/denonavr.py @@ -44,7 +44,7 @@ SOUND_MODE_MAPPING = OrderedDict( ('AUTO', ['None']), ('VIRTUAL', ['VIRTUAL']), ('PURE DIRECT', ['DIRECT']), - ('DOLBY DIGITAL', ['DOLBY DIGI...
Add "DTS Neural:X" to sound mode list
py
diff --git a/storage/nox.py b/storage/nox.py index <HASH>..<HASH> 100644 --- a/storage/nox.py +++ b/storage/nox.py @@ -74,7 +74,7 @@ def system_tests(session, python_version): session.install('.') # Run py.test against the system tests. - session.run('py.test', '--quiet', 'tests/system.py') + session....
Pass '*posargs' to py.test when running system tests. (#<I>)
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -137,6 +137,27 @@ class HClusterIntegerTestCase(unittest.TestCase): result = sorted([sorted(_) for _ in cl.getlevel(40)]) self.assertEqual(result, expected) + def testAverageLinkage(self): + cl = Hier...
Added a unit-test for UCLUS linkage.
py
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/externalshell/sitecustomize.py +++ b/spyderlib/widgets/externalshell/sitecustomize.py @@ -109,13 +109,9 @@ if sys.platform == 'darwin' and 'Spyder.app' in ...
Mac app: Add missing class to site - This is needed by the scientific startup script
py
diff --git a/binaryornot/check.py b/binaryornot/check.py index <HASH>..<HASH> 100755 --- a/binaryornot/check.py +++ b/binaryornot/check.py @@ -82,11 +82,6 @@ def is_binary(filename): :returns: True if it's a binary file, otherwise False. """ - # PNGs start with bytes that appear to be text - # See PNG...
PNG special case no longer needed, with new heuristic.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ setup(name='ansi', author_email='maze@pyth0n.org', url='https://github.com/tehmaze/ansi/', packages = ['ansi', 'ansi.colour'], + package_data = {'ansi': ['py.typed']}, long_descrip...
Include py.typed marker in package
py
diff --git a/lib/webinterface_handler_flask.py b/lib/webinterface_handler_flask.py index <HASH>..<HASH> 100644 --- a/lib/webinterface_handler_flask.py +++ b/lib/webinterface_handler_flask.py @@ -228,8 +228,8 @@ def create_invenio_flask_app(**kwargs_config): def do_login_first(error): """Displays login pag...
WebComment: code style improvements * Connects signal record after update with BibField. * Improves blueprint and fixes regression tests. * FIXME access to comments in restricted collection
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ setup(name = "instapaperlib", author_email = "d@unwiredcouch.com", url = "http://github.com/mrtazz/InstapaperLibrary", packages = ["instapaperlib"], + scripts=["bin/instapaper.py"], ...
add scripts to setup.py
py
diff --git a/kitty/bin/kitty_tool.py b/kitty/bin/kitty_tool.py index <HASH>..<HASH> 100755 --- a/kitty/bin/kitty_tool.py +++ b/kitty/bin/kitty_tool.py @@ -199,7 +199,8 @@ class FileGeneratorHandler(Handler): if len(out_line) > self.max_line_length: max_line_length = len(out_line) else: - ...
[kitty-tool] bugix: fixed undefined variable in progress printing This commit fixes a bug of using undefined variable in some cases when printing the progress.
py
diff --git a/src/transformers/modeling_mmbt.py b/src/transformers/modeling_mmbt.py index <HASH>..<HASH> 100644 --- a/src/transformers/modeling_mmbt.py +++ b/src/transformers/modeling_mmbt.py @@ -149,7 +149,7 @@ MMBT_INPUTS_DOCSTRING = r""" Inputs: MMBT_START_DOCSTRING, MMBT_INPUTS_DOCSTRING, ) -class MMBT...
Add nn.Module as superclass (#<I>)
py
diff --git a/centinel/daemonize.py b/centinel/daemonize.py index <HASH>..<HASH> 100644 --- a/centinel/daemonize.py +++ b/centinel/daemonize.py @@ -51,9 +51,9 @@ def daemonize(package, bin_loc): # create a script to run centinel every hour hourly = "".join(["#!/bin/bash\n", "# cron job f...
fixed bug where we used the old run cmd updated run commands in cron jobs to use the correct cmds
py
diff --git a/pyxley/utils/flask_helper.py b/pyxley/utils/flask_helper.py index <HASH>..<HASH> 100644 --- a/pyxley/utils/flask_helper.py +++ b/pyxley/utils/flask_helper.py @@ -4,7 +4,7 @@ from flask import Flask, render_template DEFAULT_HTML_PARAMS = { "page_scripts": ["bundle.js"], "base_scripts": [], - "...
cast keys as list for python 3 support in flask_helper
py
diff --git a/examples/py/binance-fetch-ohlcv-to-csv.py b/examples/py/binance-fetch-ohlcv-to-csv.py index <HASH>..<HASH> 100644 --- a/examples/py/binance-fetch-ohlcv-to-csv.py +++ b/examples/py/binance-fetch-ohlcv-to-csv.py @@ -44,7 +44,7 @@ def scrape_ohlcv(exchange, max_retries, symbol, timeframe, since, limit): ...
examples/py/binance-fetch-ohlcv-to-csv.py clarifications for #<I>
py
diff --git a/indy_node/test/request_handlers/test_update_state_config_req_handler.py b/indy_node/test/request_handlers/test_update_state_config_req_handler.py index <HASH>..<HASH> 100644 --- a/indy_node/test/request_handlers/test_update_state_config_req_handler.py +++ b/indy_node/test/request_handlers/test_update_state...
INDY-<I>: Fix failing tests
py
diff --git a/ibis/backends/pyspark/tests/conftest.py b/ibis/backends/pyspark/tests/conftest.py index <HASH>..<HASH> 100644 --- a/ibis/backends/pyspark/tests/conftest.py +++ b/ibis/backends/pyspark/tests/conftest.py @@ -198,9 +198,8 @@ class TestConf(BackendTest, RoundAwayFromZero): @pytest.fixture(scope='session')...
BUG: Fix pyspark client that was being used to test without data (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='django-undeletable', packages=['django_undeletable'], # this must be the same as the name above version='0.4.1', - description='Deleted data stays in the database and will be hidden...
changed description for pypi
py
diff --git a/insane.py b/insane.py index <HASH>..<HASH> 100755 --- a/insane.py +++ b/insane.py @@ -690,7 +690,7 @@ class Lipid: struc.extend([(j%2,j/2,taillength-1-i) for i in rl]) mx,my,mz = [ (max(i)+min(i))/2 for i in zip(*struc) ] - self.coords = [(i,0.25*(x-mx...
Fixed compatibility issue with martinate (building arbitrary lipids)
py
diff --git a/delphi/paths.py b/delphi/paths.py index <HASH>..<HASH> 100644 --- a/delphi/paths.py +++ b/delphi/paths.py @@ -3,4 +3,4 @@ from pathlib import Path data_dir = str((Path(__file__)/'../../data').resolve()) adjectiveData = str((Path(data_dir)/'adjectiveData.tsv').resolve()) south_sudan_data = str((Path(data...
concept_to_indicator_mappings text file extension changed from .yml to .txt
py
diff --git a/django_extensions/management/commands/runscript.py b/django_extensions/management/commands/runscript.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/runscript.py +++ b/django_extensions/management/commands/runscript.py @@ -4,6 +4,7 @@ import importlib import traceback from dj...
Raise for non-CommandError exceptions by default Follow Django's convention of displaying the exception traceback if the exception is not a CommandError Previously, exceptions raised by the script itself were not printed. This fixes that Ref: <URL>
py
diff --git a/pybotvac/robot.py b/pybotvac/robot.py index <HASH>..<HASH> 100644 --- a/pybotvac/robot.py +++ b/pybotvac/robot.py @@ -241,10 +241,12 @@ class Auth(requests.auth.AuthBase): def __call__(self, request): # Due to https://github.com/stianaske/pybotvac/issues/30 # Neato expects and suppor...
Now resets locale after call to time.strftime in Auth class
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,18 @@ from setuptools import setup setup(name='ostruct', - version='2.0', + version='2.1', description='OpenStruct Data Structure', long_description='OpenStruct, the felixble data structure...
Incremented version to <I>
py
diff --git a/mktintegration/actor.py b/mktintegration/actor.py index <HASH>..<HASH> 100644 --- a/mktintegration/actor.py +++ b/mktintegration/actor.py @@ -51,7 +51,6 @@ class MktActor: self.state = state if self.state is None: self.state = mktplace_state.MarketPlaceState(ledger_url) - ...
update integration test based on state manager revisions.
py
diff --git a/blockstack_client/backend/crypto/utils.py b/blockstack_client/backend/crypto/utils.py index <HASH>..<HASH> 100644 --- a/blockstack_client/backend/crypto/utils.py +++ b/blockstack_client/backend/crypto/utils.py @@ -24,9 +24,8 @@ import base64 import scrypt - -# TODO: deprecate use of Pycrypto by 0.16 -f...
using cryptography instead of pycrypto for legacy wallet decryption
py
diff --git a/parsl/providers/local/local.py b/parsl/providers/local/local.py index <HASH>..<HASH> 100644 --- a/parsl/providers/local/local.py +++ b/parsl/providers/local/local.py @@ -280,8 +280,3 @@ class LocalProvider(ExecutionProvider, RepresentationMixin): @property def status_polling_interval(self): ...
remove irrelevant __main__ stub of local provider (#<I>)
py
diff --git a/beeswarm/feeder/consumer/consumer.py b/beeswarm/feeder/consumer/consumer.py index <HASH>..<HASH> 100644 --- a/beeswarm/feeder/consumer/consumer.py +++ b/beeswarm/feeder/consumer/consumer.py @@ -19,7 +19,6 @@ import gevent from beeswarm.feeder.consumer.loggers import loggerbase from beeswarm.feeder.consum...
feeder now respects the config file while logging to the beekeeper
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ try: - from setuptools import setup, Command + from setuptools import setup, Command, find_packages except ImportError: from distutils.core import setup from pip.req import parse_requirements @@ ...
Setup.py now recursively searches sub packages
py
diff --git a/pymc/model.py b/pymc/model.py index <HASH>..<HASH> 100644 --- a/pymc/model.py +++ b/pymc/model.py @@ -131,8 +131,13 @@ def Point(*args, **kwargs): del kwargs['model'] else: model = Model.get_context() + try: + d = dict(*args, **kwargs) + except e: + raise TypeErro...
better error message for wrong params to Point
py
diff --git a/master/buildbot/reporters/generators/utils.py b/master/buildbot/reporters/generators/utils.py index <HASH>..<HASH> 100644 --- a/master/buildbot/reporters/generators/utils.py +++ b/master/buildbot/reporters/generators/utils.py @@ -138,7 +138,7 @@ class BuildStatusGeneratorMixin(util.ComparableMixin): ...
generators: Don't assume message body is string
py
diff --git a/spyder/widgets/sourcecode/codeeditor.py b/spyder/widgets/sourcecode/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/sourcecode/codeeditor.py +++ b/spyder/widgets/sourcecode/codeeditor.py @@ -339,8 +339,13 @@ class CodeEditor(TextEditBaseWidget): self.highlight_current_line_enable...
Added a comment to explain the workaround.
py