diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pyicloud/base.py b/pyicloud/base.py index <HASH>..<HASH> 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -151,9 +151,12 @@ class PyiCloudService(object): if os.path.exists(cookiejar_path): try: self.session.cookies.load() - except cookielib.LoadErro...
Gracefully handle malformed cookiejars LoadError would only be raised if the cookiejar didn't contain the expected magic header. But a pickeled jar would potentially contain data that raised a UnicodeDecodeError, so we need account for both.
py
diff --git a/ib_insync/decoder.py b/ib_insync/decoder.py index <HASH>..<HASH> 100644 --- a/ib_insync/decoder.py +++ b/ib_insync/decoder.py @@ -168,19 +168,20 @@ class Decoder: """ def handler(fields): - try: - args = [ - field if typ is str else - ...
Resolve wrapper method dynamically
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -24,6 +24,11 @@ def ordered(): @pytest.fixture +def client(session): + return bloop.client.Client(session=session) + + +@pytest.fixture def session(): class DummyClient: ...
Add client fixture with dummy session
py
diff --git a/satpy/scene.py b/satpy/scene.py index <HASH>..<HASH> 100644 --- a/satpy/scene.py +++ b/satpy/scene.py @@ -630,7 +630,7 @@ class Scene: return new_scn - def aggregate(self, dataset_ids=None, boundary='exact', side='left', func='mean', **dim_kwargs): + def aggregate(self, dataset_ids=None,...
Fix aggregation to pass boundary
py
diff --git a/tests/test_etcd3.py b/tests/test_etcd3.py index <HASH>..<HASH> 100644 --- a/tests/test_etcd3.py +++ b/tests/test_etcd3.py @@ -378,6 +378,7 @@ class TestEtcd3(object): def slow_watch_mock(*args, **kwargs): time.sleep(4) + return [] foo_etcd.watcher._watch_stub.W...
Fix slow_watch_mock in test_watch_timeout_on_establishment slow_watch_mock returns nothing, but Watcher._run expects a Watch object returns an iterable. This causes "TypeError: 'NoneType' object is not iterable" mentioned in <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ setup( zip_safe=False, scripts=[ - "bin/wa_kat_server.py.py", + "bin/wa_kat_server.py", "bin/wa_kat_mrc_to_xml.py", "bin/wa_kat_build_conspects.py", "bin/wa_k...
Fixed bug in setup.py.
py
diff --git a/hamster/stats.py b/hamster/stats.py index <HASH>..<HASH> 100644 --- a/hamster/stats.py +++ b/hamster/stats.py @@ -51,13 +51,13 @@ class StatsViewer: eventBox.add(self.day_chart); place.add(eventBox) - self.category_chart = Chart(orient = "horizontal", max_bar_width = 30) ...
do not animate category and activity totals, at least for now svn path=/trunk/; revision=<I>
py
diff --git a/src/toil/jobStores/aws/jobStore.py b/src/toil/jobStores/aws/jobStore.py index <HASH>..<HASH> 100644 --- a/src/toil/jobStores/aws/jobStore.py +++ b/src/toil/jobStores/aws/jobStore.py @@ -545,8 +545,9 @@ class AWSJobStore(AbstractJobStore): location = region_to_bucket_location(self.r...
Retry S3 job store bucket creation on OperationAborted (fixes #<I>)
py
diff --git a/slackminion/plugins/core/__init__.py b/slackminion/plugins/core/__init__.py index <HASH>..<HASH> 100644 --- a/slackminion/plugins/core/__init__.py +++ b/slackminion/plugins/core/__init__.py @@ -1 +1 @@ -version = '0.8.0' +version = '0.8.1'
Release <I> -Fixed crash where bot.send_im would fail when given a SlackIM object.
py
diff --git a/analytical/tests/settings.py b/analytical/tests/settings.py index <HASH>..<HASH> 100644 --- a/analytical/tests/settings.py +++ b/analytical/tests/settings.py @@ -12,3 +12,5 @@ DATABASES = { INSTALLED_APPS = [ 'analytical', ] + +SECRET_KEY = 'testing'
Add SECRET_KEY to the test settings. Running without a SECRET_KEY becomes a DeprecationWarning in Django <I>, and will start raising an ImproperlyConfigured error in Django <I>. Details: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( long_description=README, keywords='Django, social network, template, facebook, twitter', url='https://github.com/creafz/django-social-widgets', - download_url = 'https://github.com/creaf...
Fixed download link in setup.py
py
diff --git a/pypeerassets/kutil.py b/pypeerassets/kutil.py index <HASH>..<HASH> 100644 --- a/pypeerassets/kutil.py +++ b/pypeerassets/kutil.py @@ -59,15 +59,15 @@ class Kutil: '''generate an address from pubkey''' if not compressed: - keyhash = unhexlify(self._pubkeyhash + hexlify( - ...
make .address method shorter
py
diff --git a/pymc/stats.py b/pymc/stats.py index <HASH>..<HASH> 100644 --- a/pymc/stats.py +++ b/pymc/stats.py @@ -67,6 +67,7 @@ def autocov(x, lag=1): x[:-lag] and x[lag:] in the diagonal and the autocovariance on the off-diagonal. """ + x = np.asarray(x) if not lag: return 1 if lag<0: @@...
Wrap autocov input as numpy array to prevent numpy from choking on list.
py
diff --git a/billy/site/browse/views.py b/billy/site/browse/views.py index <HASH>..<HASH> 100644 --- a/billy/site/browse/views.py +++ b/billy/site/browse/views.py @@ -504,10 +504,15 @@ def random_bill(request, abbr): bill = None warning = 'No bills matching the criteria were found.' + try: + ...
fix a bug I introduced tweaking the 'json dump' link
py
diff --git a/digitalocean/Droplet.py b/digitalocean/Droplet.py index <HASH>..<HASH> 100644 --- a/digitalocean/Droplet.py +++ b/digitalocean/Droplet.py @@ -413,7 +413,7 @@ class Droplet(BaseAPI): """ ssh_keys_id = list() for ssh_key in self.ssh_keys: - if type(ssh_key) in [int, long...
Long and integer are different in python 3. Thanks @moyamo #<I>
py
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/readinput.py +++ b/openquake/commonlib/readinput.py @@ -751,7 +751,7 @@ def get_source_models(oqparam, gsim_lt, source_model_lt, monitor, trts = [mod.trt for mod in src_groups]...
Better logging [skip CI] Former-commit-id: eb8f4ba<I>a<I>b3f<I>e<I>bd1ac
py
diff --git a/tests/testapp/tests/test_resource.py b/tests/testapp/tests/test_resource.py index <HASH>..<HASH> 100644 --- a/tests/testapp/tests/test_resource.py +++ b/tests/testapp/tests/test_resource.py @@ -206,7 +206,15 @@ class TestResourceRelationship(TestCase): BManyResource) def test_fields_to_...
add tests to get relationship with inherited model
py
diff --git a/workshift/decorators.py b/workshift/decorators.py index <HASH>..<HASH> 100644 --- a/workshift/decorators.py +++ b/workshift/decorators.py @@ -81,7 +81,7 @@ def workshift_manager_required(function=None, redirect_no_user='login', messages = MESSAGES['ADMINS_ONLY'] if Semester.objects.filter(current...
Fixed one last bug in the decorators, all tests passing again
py
diff --git a/unsplash/photo.py b/unsplash/photo.py index <HASH>..<HASH> 100644 --- a/unsplash/photo.py +++ b/unsplash/photo.py @@ -48,3 +48,22 @@ class Photo(Client): url = "/photos/search" response = self._get(url, params=params) return response.json() + + def random(self, count=1, **kwar...
random, stats and download functions added to photo
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,7 @@ setup( # http://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-console-scripts-entry-point entry_points = { 'console_scripts': [ - 'iota-cli=iota.bin.repl:main', + '...
change REPL name to pyota-cli
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 @@ -80,7 +80,7 @@ try: _solvers.append({ 'class': glpk.Solver, 'name': 'glpk', - 'integer': False, + 'integer': True, ...
generic: Mark GLPK as MILP solver in generic interface
py
diff --git a/py/h2o.py b/py/h2o.py index <HASH>..<HASH> 100644 --- a/py/h2o.py +++ b/py/h2o.py @@ -1137,7 +1137,7 @@ class H2O(object): )) return a - def h2o_log_msg(self, message=None): + def h2o_log_msg(self, message=None, timeoutSecs=15): if 1 == 0: return if ...
add a timeoutSecs param to LogAndEcho.json request and make it default larger.
py
diff --git a/openstack_dashboard/dashboards/project/cg_snapshots/tables.py b/openstack_dashboard/dashboards/project/cg_snapshots/tables.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/cg_snapshots/tables.py +++ b/openstack_dashboard/dashboards/project/cg_snapshots/tables.py @@ -90,7 +90,7 @@...
Consistency Group Snapshots detail url is wrong The link in the consistency group table for "detail" is a mismatch for the corresponding value in the urls.py file, causing cg snapshots clicks to not load details for the user. This bug was introduced in <URL>
py
diff --git a/tests/test_menu_launcher.py b/tests/test_menu_launcher.py index <HASH>..<HASH> 100644 --- a/tests/test_menu_launcher.py +++ b/tests/test_menu_launcher.py @@ -272,7 +272,7 @@ def test_running_menu(): child.sendline('2') child.expect('Return to Logs menu') # return to logs menu - child.send...
Modified sendline to 3 for returning to logs from namespace menu to match test env.
py
diff --git a/MAVProxy/modules/mavproxy_wp.py b/MAVProxy/modules/mavproxy_wp.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/mavproxy_wp.py +++ b/MAVProxy/modules/mavproxy_wp.py @@ -150,6 +150,9 @@ class WPModule(mp_module.MPModule): elif mtype in ['WAYPOINT', 'MISSION_ITEM', 'MISSION_ITEM_INT'] and sel...
wp: don't manipulate non-mission MISSION_ITEM_INT msgs
py
diff --git a/torchtext/prototype/models/t5/wrapper.py b/torchtext/prototype/models/t5/wrapper.py index <HASH>..<HASH> 100644 --- a/torchtext/prototype/models/t5/wrapper.py +++ b/torchtext/prototype/models/t5/wrapper.py @@ -52,11 +52,11 @@ class T5Wrapper(nn.Module): if configuration is None: asser...
Make comment paths dynamic (#<I>)
py
diff --git a/bokeh/tests/test_resources.py b/bokeh/tests/test_resources.py index <HASH>..<HASH> 100644 --- a/bokeh/tests/test_resources.py +++ b/bokeh/tests/test_resources.py @@ -4,6 +4,7 @@ from os.path import join import bokeh import bokeh.resources as resources +from bokeh.resources import _get_cdn_urls WRAPP...
Add test to check the correct url in dev-suffixed versions.
py
diff --git a/ryu/tests/unit/packet/test_bgp.py b/ryu/tests/unit/packet/test_bgp.py index <HASH>..<HASH> 100644 --- a/ryu/tests/unit/packet/test_bgp.py +++ b/ryu/tests/unit/packet/test_bgp.py @@ -201,7 +201,7 @@ class Test_bgp(unittest.TestCase): for f in files: print('testing %s' % f) - ...
python3: Open packet data with binary mode
py
diff --git a/crumbs/__init__.py b/crumbs/__init__.py index <HASH>..<HASH> 100644 --- a/crumbs/__init__.py +++ b/crumbs/__init__.py @@ -38,7 +38,7 @@ class Parameters(object): :``group_prefix``: Prefix command line arguments with the group name if this is True; otherwise, ignore gr...
Add notation that group_prefix defaults to True.
py
diff --git a/fbchat/client.py b/fbchat/client.py index <HASH>..<HASH> 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -549,7 +549,7 @@ class Client(object): pass def getUserInfo(self,*user_ids): - """Get user info from id. + """Get user info from id. Unordered. ...
improved getUserInfo to return list of results or single value
py
diff --git a/gears/processors.py b/gears/processors.py index <HASH>..<HASH> 100644 --- a/gears/processors.py +++ b/gears/processors.py @@ -85,7 +85,7 @@ class DirectivesProcessor(BaseProcessor): if not absolute_path: raise InvalidDirective( "%s (%s): required file does not exist."...
Add method to DirectivesProcessor for creating asset
py
diff --git a/tests/consumer/storage/test_sqla.py b/tests/consumer/storage/test_sqla.py index <HASH>..<HASH> 100644 --- a/tests/consumer/storage/test_sqla.py +++ b/tests/consumer/storage/test_sqla.py @@ -4,10 +4,8 @@ sa = pytest.importorskip("sqlalchemy") import os import responses import flask -from lazy import lazy...
Suppress some SQLAlchemy warnings.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ setup( author='Regards Citoyens', author_email='contact@regardscitoyens.org', - install_requires=['requests', 'lxml', 'beautifulsoup4'], + install_requires=['requests', 'lxml==4.1.1', 'beautifu...
pin lxml to non breaking version
py
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index <HASH>..<HASH> 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -12,6 +12,7 @@ from shutil import rmtree import string import tempfile import traceback +from typing import Union, cast import warnings import zipfile @@ -515,9 +5...
Add typing annotation to assert_index_equal (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name='tableaudocumentapi', - version='0.4', + version='0.5.dev0', author='Tableau', author_email='github@tableau.com', url='https://github.com/tableau/docume...
begin development of <I> (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,18 @@ #!/usr/bin/env python from setuptools import setup, find_packages -import os, io +import os pkg_root = os.path.dirname(__file__) # Error-handling here is to allow package to be built w/o README include...
setup: try to fix README on pypi with unicode -> bytes
py
diff --git a/openquake/engine/tests/calculators/risk/scenario_damage/core_test.py b/openquake/engine/tests/calculators/risk/scenario_damage/core_test.py index <HASH>..<HASH> 100644 --- a/openquake/engine/tests/calculators/risk/scenario_damage/core_test.py +++ b/openquake/engine/tests/calculators/risk/scenario_damage/co...
I discover that the scenario_damage/core_test has been broken for a long time
py
diff --git a/cloudvolume/viewer.py b/cloudvolume/viewer.py index <HASH>..<HASH> 100644 --- a/cloudvolume/viewer.py +++ b/cloudvolume/viewer.py @@ -57,10 +57,21 @@ def to_volumecutout(img, image_type, resolution=None, offset=None, hostname='loc handle=None, ) +def to3d(img): + while len(img.shape) > 3: + i...
feat(uviewer): cast 2D and 4D images to 3D automatically
py
diff --git a/filesystems/common.py b/filesystems/common.py index <HASH>..<HASH> 100644 --- a/filesystems/common.py +++ b/filesystems/common.py @@ -54,7 +54,7 @@ def create( _state=attr.ib(default=attr.Factory(state), repr=False), create=create_file, - open=lambda fs, p...
Default open to mode "r" not "rb"
py
diff --git a/stacker_blueprints/s3.py b/stacker_blueprints/s3.py index <HASH>..<HASH> 100644 --- a/stacker_blueprints/s3.py +++ b/stacker_blueprints/s3.py @@ -57,6 +57,13 @@ class Buckets(Blueprint): Value=GetAtt(title, "DomainName") ) ) + if "WebsiteConfigu...
Auto add the URL output if website is configured
py
diff --git a/gns3server/crash_report.py b/gns3server/crash_report.py index <HASH>..<HASH> 100644 --- a/gns3server/crash_report.py +++ b/gns3server/crash_report.py @@ -19,6 +19,10 @@ import os import sys import struct import platform +import faulthandler + +# Display a traceback in case of segfault crash. Usefull whe...
Add the fault handler in order to try to get a proper crash stack
py
diff --git a/sllurp/inventory.py b/sllurp/inventory.py index <HASH>..<HASH> 100644 --- a/sllurp/inventory.py +++ b/sllurp/inventory.py @@ -68,7 +68,7 @@ def parse_args(): help='seconds to inventory (default forever)') parser.add_argument('-d', '--debug', action='store_true', ...
inventory: save all reporting until end by default specify n=1 to get the old behavior (one tag report per tag sighting)
py
diff --git a/rope/editor.py b/rope/editor.py index <HASH>..<HASH> 100644 --- a/rope/editor.py +++ b/rope/editor.py @@ -249,7 +249,7 @@ class GraphicalEditor(TextEditor): scrollbar = Scrollbar(frame, orient=VERTICAL) scrollbar['command'] = proposals.yview proposals.config(yscrollcommand=scroll...
Using Proposals.completions in editor
py
diff --git a/src/aspectlib/__init__.py b/src/aspectlib/__init__.py index <HASH>..<HASH> 100644 --- a/src/aspectlib/__init__.py +++ b/src/aspectlib/__init__.py @@ -520,7 +520,9 @@ def weave_instance(instance, aspect, methods=NORMAL_METHODS, lazy=False, bag=Bro method_matches = make_method_matcher(methods) logd...
Don't use lambda here
py
diff --git a/gandi/cli/commands/global.py b/gandi/cli/commands/global.py index <HASH>..<HASH> 100644 --- a/gandi/cli/commands/global.py +++ b/gandi/cli/commands/global.py @@ -13,9 +13,19 @@ def setup(gandi): Create global configuration directory with API credentials """ - gandi.echo("Welcome to GandiCLI,...
Improve flow of gandi setup command to be more user friendly
py
diff --git a/qiskit/qasm/_qasm.py b/qiskit/qasm/_qasm.py index <HASH>..<HASH> 100644 --- a/qiskit/qasm/_qasm.py +++ b/qiskit/qasm/_qasm.py @@ -42,7 +42,8 @@ class Qasm(object): def get_tokens(self): """Returns a generator of the tokens.""" if self._filename: - self._data = open(self._f...
Fix unclosed file during QASM parsing
py
diff --git a/tests/test_conf.py b/tests/test_conf.py index <HASH>..<HASH> 100644 --- a/tests/test_conf.py +++ b/tests/test_conf.py @@ -7,8 +7,6 @@ from pecan import conf as _runtime_conf class TestConf(TestCase): def setUp(self): - import sys - test_config_d = os.path.join(os.path.dirname(__file...
removing unneeded sys import
py
diff --git a/wafer/management/commands/wafer_add_default_groups.py b/wafer/management/commands/wafer_add_default_groups.py index <HASH>..<HASH> 100644 --- a/wafer/management/commands/wafer_add_default_groups.py +++ b/wafer/management/commands/wafer_add_default_groups.py @@ -16,6 +16,7 @@ class Command(BaseCommand): ...
Add private notes permission to default 'Talk Mentors' permissions
py
diff --git a/salt/modules/localemod.py b/salt/modules/localemod.py index <HASH>..<HASH> 100644 --- a/salt/modules/localemod.py +++ b/salt/modules/localemod.py @@ -274,4 +274,4 @@ def gen_locale(locale): cmd.append('--generate') cmd.append(locale) - return __salt__['cmd.retcode'](cmd, python_shell=Fal...
localemod.gen_locale now always returns a boolean Related to #<I>, also fixes #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,6 @@ setup( "jsonpointer>1.13", "rfc3987", "strict-rfc3339", - "uritemplate>3.0.0", "webcolors", ], },
This isn't released, and seems unlikely to be by the time we want to. See <URL>
py
diff --git a/pypot/server/snap.py b/pypot/server/snap.py index <HASH>..<HASH> 100644 --- a/pypot/server/snap.py +++ b/pypot/server/snap.py @@ -136,6 +136,12 @@ class SnapRobotServer(AbstractServer): with open(os.path.join(get_snap_user_projects_directory(), 'pypot-snap-blocks.xml')) as f: ...
Add a generic route in Snap API to load any project.
py
diff --git a/host/pydaq/RL/StdRegister.py b/host/pydaq/RL/StdRegister.py index <HASH>..<HASH> 100644 --- a/host/pydaq/RL/StdRegister.py +++ b/host/pydaq/RL/StdRegister.py @@ -37,7 +37,6 @@ class StdRegister(RegisterLayer): self._fields[field['name']] = bv self._fields_conf[field[...
MAINT: <I> was done by mistake, revert to <I>
py
diff --git a/triplesec/triplesec.py b/triplesec/triplesec.py index <HASH>..<HASH> 100644 --- a/triplesec/triplesec.py +++ b/triplesec/triplesec.py @@ -199,6 +199,7 @@ class TripleSec(): def __init__(self, key=None): self._check_key_type(key) self.key = key + self._extra_bytes = None ...
make encrypt return only the ciphertext, and make the extra bytes retrievable with a getter method afterwards
py
diff --git a/spotify/models/base.py b/spotify/models/base.py index <HASH>..<HASH> 100644 --- a/spotify/models/base.py +++ b/spotify/models/base.py @@ -85,6 +85,9 @@ class URIBase(SpotifyBase): - Casting to a string will return the uri of the object. """ + def __hash__(self): + return hash(self.ur...
Make `URIBase` derived classes hashable
py
diff --git a/jupyter_server_proxy/handlers.py b/jupyter_server_proxy/handlers.py index <HASH>..<HASH> 100644 --- a/jupyter_server_proxy/handlers.py +++ b/jupyter_server_proxy/handlers.py @@ -491,7 +491,7 @@ class SuperviseAndProxyHandler(LocalProxyHandler): # FIXME: Make sure this times out properly? ...
Use the recommended async with syntax to acquire and release an asyncio Lock. See <URL>
py
diff --git a/stronghold/tests/__init__.py b/stronghold/tests/__init__.py index <HASH>..<HASH> 100644 --- a/stronghold/tests/__init__.py +++ b/stronghold/tests/__init__.py @@ -1,2 +1,2 @@ -from stronghold.tests.decorators import StrongholdDecoratorTestCase -from stronghold.tests.middleware import StrongholdMiddlewareTes...
change tests/__init__ to import all tests This will make it easier for people to add more tests.
py
diff --git a/MIMAS.py b/MIMAS.py index <HASH>..<HASH> 100644 --- a/MIMAS.py +++ b/MIMAS.py @@ -46,7 +46,11 @@ def maskfile(regionfile,infile,outfile): wcs = pywcs.WCS(im[0].header, naxis=2) except: wcs = pywcs.WCS(str(im[0].header),naxis=2) - data = np.squeeze(im[0].data) + + if len(im[0].d...
check the shape of the data before "squeezing" it
py
diff --git a/fut/core.py b/fut/core.py index <HASH>..<HASH> 100644 --- a/fut/core.py +++ b/fut/core.py @@ -175,6 +175,8 @@ class Core(object): # db self._players = None self._nations = None + self._leagues = {} + self._teams = {} if debug: # save full log to file ...
cache teams & leagues db
py
diff --git a/lwr/lwr_client/transport/standard.py b/lwr/lwr_client/transport/standard.py index <HASH>..<HASH> 100644 --- a/lwr/lwr_client/transport/standard.py +++ b/lwr/lwr_client/transport/standard.py @@ -2,6 +2,7 @@ LWR HTTP Client layer based on Python Standard Library (urllib2) """ from __future__ import with_s...
Fix uploading of empty files with the urllib based transport. mmap cannot map empty files.
py
diff --git a/peewee.py b/peewee.py index <HASH>..<HASH> 100644 --- a/peewee.py +++ b/peewee.py @@ -412,6 +412,9 @@ class Database(object): def create_index_query(self, model_class, field_names, unique, framing=None): framing = framing or 'CREATE %(unique)s INDEX %(index)s ON %(table)s(%(field)s);' + ...
Moving the 'normalization' of field_names into a lower-level method
py
diff --git a/onecodex/api.py b/onecodex/api.py index <HASH>..<HASH> 100644 --- a/onecodex/api.py +++ b/onecodex/api.py @@ -90,9 +90,9 @@ class Api(object): if os.path.exists(creds_fp): with open(creds_fp) as f: creds = json.load(f) - return creds.get('email') - ...
Fix email fetching to handle empty ~/.onecodex files
py
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/engine/db/models.py +++ b/openquake/engine/db/models.py @@ -1633,7 +1633,9 @@ class HazardCurveDataManager(djm.GeoManager): """ Same as #individual_curves but the results are ordered ...
Restored the old "order by" in individual_curves
py
diff --git a/metnet/lpsolver.py b/metnet/lpsolver.py index <HASH>..<HASH> 100644 --- a/metnet/lpsolver.py +++ b/metnet/lpsolver.py @@ -5,6 +5,7 @@ import sys import math import numbers from itertools import repeat +from collections import Counter import cplex as cp @@ -156,7 +157,7 @@ class Expression(object): ...
lpsolver: Use collection.Counter to speed up adding expressions
py
diff --git a/stacker/plan.py b/stacker/plan.py index <HASH>..<HASH> 100644 --- a/stacker/plan.py +++ b/stacker/plan.py @@ -142,7 +142,7 @@ class Plan(OrderedDict): step.status = COMPLETE steps += 1 - logger.log(level, "\n\nPlan '%s':\n%s", self.details, '\n'.join(messages)) + l...
Make check points and outlines more readable
py
diff --git a/brother_ql/reader.py b/brother_ql/reader.py index <HASH>..<HASH> 100755 --- a/brother_ql/reader.py +++ b/brother_ql/reader.py @@ -297,8 +297,8 @@ class BrotherQLReader(object): fmt = " media width: {} mm, media length: {} mm, raster no: {} rows" logger.info...
fix: logging output in BrotherQLReader() raises TypeError The following error is resolved with this fix: TypeError: not all arguments converted during string formatting
py
diff --git a/scripts/wooify.py b/scripts/wooify.py index <HASH>..<HASH> 100644 --- a/scripts/wooify.py +++ b/scripts/wooify.py @@ -4,7 +4,6 @@ description = """ Create a Django app with Wooey setup. """ import sys -import six import os import subprocess import shutil @@ -56,7 +55,6 @@ def main(): for templat...
removal of six encoding from wooify, which was causing the newline joins in middleware to be removed
py
diff --git a/OpenPNM/Base/__Core__.py b/OpenPNM/Base/__Core__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Base/__Core__.py +++ b/OpenPNM/Base/__Core__.py @@ -593,7 +593,7 @@ class Core(Base): def _get_labels(self,element='',locations=[],mode='union'): r''' This is the actual label getter method,...
Fixed 'pretty printing' of labels. It didn't print nice when the whole list was requested.
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -43,7 +43,7 @@ class SetTest(unittest.TestCase): def tearDown(self): rdb = redis.Redis() - rdb.delete('testqueue') + rdb.delete('retaskqueue-testqueue') class GetTest(unittest.TestCase):
Deleting correct key from Redis
py
diff --git a/pydoop/mapreduce/streams.py b/pydoop/mapreduce/streams.py index <HASH>..<HASH> 100644 --- a/pydoop/mapreduce/streams.py +++ b/pydoop/mapreduce/streams.py @@ -70,6 +70,17 @@ class StreamFilter(object): class DownStreamFilter(StreamFilter): + START_MESSAGE = START_MESSAGE + SET_JOB_CONF = SET_JOB_...
Copied constants in DownStream/UpStream Filter
py
diff --git a/wafer/talks/admin.py b/wafer/talks/admin.py index <HASH>..<HASH> 100644 --- a/wafer/talks/admin.py +++ b/wafer/talks/admin.py @@ -5,6 +5,7 @@ from wafer.talks.models import Talk class TalkAdmin(admin.ModelAdmin): list_display = ('corresponding_author', 'title', 'status') + list_editable = ('stat...
Make talk status editale from the talk list overview
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ def read(fname): setup( name = "rapid", - version = "0.0.1", + version = "0.0.2", author = "Keshav Gupta", author_email = "keshav@keshav.xyz", description = ("rapid generates bo...
fixed some bugs related to newly added languages
py
diff --git a/openquake/hazardlib/sourceconverter.py b/openquake/hazardlib/sourceconverter.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/sourceconverter.py +++ b/openquake/hazardlib/sourceconverter.py @@ -846,8 +846,7 @@ class SourceConverter(RuptureConverter): rup_pmf_data = [] rups_weights...
Added some checks on nonparametric sources
py
diff --git a/shinken/daemons/brokerdaemon.py b/shinken/daemons/brokerdaemon.py index <HASH>..<HASH> 100644 --- a/shinken/daemons/brokerdaemon.py +++ b/shinken/daemons/brokerdaemon.py @@ -487,6 +487,14 @@ class Broker(BaseSatellite): self.have_modules = True logger.info("We received modules %s ...
Fix : when broker is asked to wait a new conf, then it do not initialize new modules when it get a new configuration.
py
diff --git a/vertica_python/vertica/cursor.py b/vertica_python/vertica/cursor.py index <HASH>..<HASH> 100644 --- a/vertica_python/vertica/cursor.py +++ b/vertica_python/vertica/cursor.py @@ -238,13 +238,14 @@ class Cursor(object): return self._closed or self.connection.closed() def row_formatter(self, r...
Avoids silent weirdness from conn.cursor(dict) connection.cursor('dict') works as expected, but connection.cursor(dict) surprisingly returns empty query results. This commit makes passing dict or 'dict' equavalent when passed to conn.cursor, and a noisy error if any unhandled value is passed as the cursor_type.
py
diff --git a/drivers/sdcard/sdcard.py b/drivers/sdcard/sdcard.py index <HASH>..<HASH> 100644 --- a/drivers/sdcard/sdcard.py +++ b/drivers/sdcard/sdcard.py @@ -100,9 +100,10 @@ class SDCard: if csd[0] & 0xC0 == 0x40: # CSD version 2.0 self.sectors = ((csd[8] << 8 | csd[9]) + 1) * 1024 eli...
drivers/sdcard: Fix CSD version <I> device size calculation.
py
diff --git a/netpyne/batch.py b/netpyne/batch.py index <HASH>..<HASH> 100644 --- a/netpyne/batch.py +++ b/netpyne/batch.py @@ -555,7 +555,7 @@ wait with open(jobPath+'.run', 'a+') as outf, open(jobPath+'.err', 'w') as errf: #pids.append(Pop...
terminate unfinished jobs after each gen
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 @@ -28,7 +28,7 @@ class RedisBackend(BaseBackend): database, timeout) def establish_connection(self): ...
Close Redis connection on channel close. Thanks to David Wolever. This needs more testing
py
diff --git a/circlator/fixvars.py b/circlator/fixvars.py index <HASH>..<HASH> 100644 --- a/circlator/fixvars.py +++ b/circlator/fixvars.py @@ -141,5 +141,7 @@ class VariantFixer: vcf_file = self.outprefix + '.vcf' self._make_vcf(vcf_file) snps, indels = self._get_variants_from_vcf(vcf_file) +...
Remove indels overlapping other variants
py
diff --git a/mongonaut/views.py b/mongonaut/views.py index <HASH>..<HASH> 100644 --- a/mongonaut/views.py +++ b/mongonaut/views.py @@ -22,6 +22,7 @@ from mongonaut.utils import is_valid_object_id class IndexView(MongonautViewMixin, ListView): + """Lists all the apps with mongoadmins attached.""" template...
Documnented IndexView and removed AppListView
py
diff --git a/tests/pipeline/test_technical.py b/tests/pipeline/test_technical.py index <HASH>..<HASH> 100644 --- a/tests/pipeline/test_technical.py +++ b/tests/pipeline/test_technical.py @@ -128,15 +128,6 @@ class BollingerBandsTestCase(WithTechnicalFactor, ZiplineTestCase): closes, ) - a...
STY: No need for these to be vertical.
py
diff --git a/scripts/bcbio_fastq_umi_prep.py b/scripts/bcbio_fastq_umi_prep.py index <HASH>..<HASH> 100755 --- a/scripts/bcbio_fastq_umi_prep.py +++ b/scripts/bcbio_fastq_umi_prep.py @@ -94,7 +94,7 @@ def _find_umi(files): """ base = os.path.basename(_commonprefix(files)) def _file_ext(f): - exts ...
UMI prep: handle R1/R2/R3 at end of file Strip off extension name to ensure identification.
py
diff --git a/tests/test_api.py b/tests/test_api.py index <HASH>..<HASH> 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -62,5 +62,7 @@ def test_tqdm_console(): def test_language_list(): - with pytest.raises(ocrmypdf.exceptions.InputFileError): - ocrmypdf.ocr('doesnotexist.pdf', '_.pdf', languag...
Loosen test language requirements - eng/deu
py
diff --git a/instabot/api/api.py b/instabot/api/api.py index <HASH>..<HASH> 100644 --- a/instabot/api/api.py +++ b/instabot/api/api.py @@ -657,7 +657,7 @@ class API(object): data = self.action_data({ 'media_id': media_id, 'container_module': container_module, - 'feed_positi...
Fix feed_position in def like feed_position from int to str
py
diff --git a/transmogrify/__init__.py b/transmogrify/__init__.py index <HASH>..<HASH> 100644 --- a/transmogrify/__init__.py +++ b/transmogrify/__init__.py @@ -2,7 +2,7 @@ __version_info__ = { 'major': 0, 'minor': 1, 'micro': 0, - 'releaselevel': 'beta', + 'releaselevel': 'gannett-beta', 'seria...
Tagged the Transmogrify version with gannett I added a gannett tag to the version number for an official release.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,9 @@ except ImportError: USE_CYTHON = False +IS_RTFD = bool(os.getenv('READTHEDOCS')) +"""Flag whether the current env is Read The Docs.""" + PROFILE_BUILD = bool(os.environ.get('PROFILE_BUILD')) """Flag w...
Don't require Cython in RTD
py
diff --git a/examples/feedback/effects.py b/examples/feedback/effects.py index <HASH>..<HASH> 100644 --- a/examples/feedback/effects.py +++ b/examples/feedback/effects.py @@ -48,16 +48,16 @@ class FeedbackEffect(effect.Effect): # gravity_force = 2.0 # Transform positions - self.feedback.unifo...
Converted feedback exaple to new uniforms
py
diff --git a/billy/reports/votes.py b/billy/reports/votes.py index <HASH>..<HASH> 100644 --- a/billy/reports/votes.py +++ b/billy/reports/votes.py @@ -1,7 +1,7 @@ import logging from collections import defaultdict -from billy import db +from billy.core import db from billy.conf import settings from billy.utils im...
Changing the votes to use billy.core
py
diff --git a/grimoire_elk/enriched/dockerhub.py b/grimoire_elk/enriched/dockerhub.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/dockerhub.py +++ b/grimoire_elk/enriched/dockerhub.py @@ -163,7 +163,7 @@ class DockerHubEnrich(Enrich): images_items[rich_item['id']] = rich_item el...
[enriched-dockerhub] Handle never updated images This code allows to ignore dockerhub images, which don't have a last updated value. This is the case of <URL>
py
diff --git a/ginga/web/pgw/Widgets.py b/ginga/web/pgw/Widgets.py index <HASH>..<HASH> 100644 --- a/ginga/web/pgw/Widgets.py +++ b/ginga/web/pgw/Widgets.py @@ -1404,7 +1404,7 @@ class TopLevel(ContainerBase): padding: 0px; margin: 0px; border: 0; - overflow: hidden; /* disable scrollbar...
Removed vertical scroll limitation in web pg widgets
py
diff --git a/weather/units/temp.py b/weather/units/temp.py index <HASH>..<HASH> 100644 --- a/weather/units/temp.py +++ b/weather/units/temp.py @@ -75,7 +75,7 @@ def calc_heat_index(temp, hum): returns the heat index in degrees F. ''' - + if (temp < 80): return temp else: @@ -94,7 +94,...
Fix max(None, xxx) in calc_wind_chill. This fixes temp test.
py
diff --git a/vultr/vultr.py b/vultr/vultr.py index <HASH>..<HASH> 100644 --- a/vultr/vultr.py +++ b/vultr/vultr.py @@ -1312,12 +1312,14 @@ class Vultr(object): if not path.startswith('/'): path = '/' + path url = self.api_endpoint + path - params['api_key'] = self.api_key ...
pass api_key for POST properly.
py
diff --git a/test/test_functional.py b/test/test_functional.py index <HASH>..<HASH> 100644 --- a/test/test_functional.py +++ b/test/test_functional.py @@ -77,7 +77,7 @@ class TestChain(unittest.TestCase): self.assertEqual(s[2], [3, 4, 5]) self.assert_type(s[2]) self.assertEqual(s[1:], [2, [3,...
fixed tests to use assert_type instead of assertTrue
py
diff --git a/geist/version.py b/geist/version.py index <HASH>..<HASH> 100644 --- a/geist/version.py +++ b/geist/version.py @@ -1 +1 @@ -__version__ = '1.0a9' +__version__ = '1.0a10'
Pushed <I>a9 to PyPI.
py
diff --git a/tests/implemented.py b/tests/implemented.py index <HASH>..<HASH> 100755 --- a/tests/implemented.py +++ b/tests/implemented.py @@ -41,6 +41,7 @@ DUMMY_CARDS = ( # Dynamic buffs set by their parent "CS2_236e", # Divine Spirit "EX1_304e", # Consume (Void Terror) + "LOE_030e" # Hollow (Unused) "NEW1...
Mark Hollow enchant as a dynamic buff
py
diff --git a/salt/modules/grains.py b/salt/modules/grains.py index <HASH>..<HASH> 100644 --- a/salt/modules/grains.py +++ b/salt/modules/grains.py @@ -514,9 +514,12 @@ def get_or_set_hash(name, val = ''.join([random.SystemRandom().choice(chars) for _ in range(length)]) if ':' in name: - n...
Fix grains.get_or_set_hash to work with multiple entries under same key
py
diff --git a/dramatiq/actor.py b/dramatiq/actor.py index <HASH>..<HASH> 100644 --- a/dramatiq/actor.py +++ b/dramatiq/actor.py @@ -1,6 +1,11 @@ +import re + from .broker import get_broker from .message import Message +#: The regular expression that represents valid queue names. +_queue_name_re = re.compile(r"[a-zA-...
feature: control how queues are named
py
diff --git a/pyseleniumjs/tests/test_scrolling.py b/pyseleniumjs/tests/test_scrolling.py index <HASH>..<HASH> 100644 --- a/pyseleniumjs/tests/test_scrolling.py +++ b/pyseleniumjs/tests/test_scrolling.py @@ -70,7 +70,7 @@ class ScrollingTest(TestCase): def test_scroll_offset(self): """Test: Scroll to bot...
Updated scrolling tests as per changes to offset getter
py
diff --git a/salt/modules/saltutil.py b/salt/modules/saltutil.py index <HASH>..<HASH> 100644 --- a/salt/modules/saltutil.py +++ b/salt/modules/saltutil.py @@ -33,7 +33,7 @@ from salt.ext.six.moves.urllib.error import URLError # Fix a nasty bug with Win32 Python not supporting all of the standard signals try: sal...
Fixed an error with SIGKILL on windows
py
diff --git a/lurklib/__init__.py b/lurklib/__init__.py index <HASH>..<HASH> 100755 --- a/lurklib/__init__.py +++ b/lurklib/__init__.py @@ -267,16 +267,22 @@ class IRC: set_by = self.from_ (segments [4]) elif self.find (data, '353'): - ...
Updated stream's SAJOIN detection to use the new caching system
py
diff --git a/maildir_deduplicate/deduplicate.py b/maildir_deduplicate/deduplicate.py index <HASH>..<HASH> 100644 --- a/maildir_deduplicate/deduplicate.py +++ b/maildir_deduplicate/deduplicate.py @@ -64,8 +64,7 @@ class Deduplicate(object): """ Load up a maildir add compute hash for each mail their contain. """...
No need to explicitly expand user variables. Maildir class already does it. See: <URL>
py